NPAPI:HTTPRedirectHandling: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 20: Line 20:
The following function can be implemented by plugins to allow for URL redirect handling:
The following function can be implemented by plugins to allow for URL redirect handling:


   void NPP_URLRedirectNotify(NPP instance, const char* uri,
   void NPP_URLRedirectNotify(NPP instance, const char* url,
                             int32 status, void* notifyData);
                             int32 status, void* notifyData);


* instance: The plug-in instance that made the request.
* instance: The plug-in instance that made the request.
* uri: The raw 'Location' header field value for the redirect.
* url: The raw 'Location' header field value for the redirect.
* status: The HTTP status code returned from the server (will be 3xx).
* status: The HTTP status code returned from the server (will be 3xx).
* notifyData: The plugin's private request data.
* notifyData: The plugin's private request data.
Confirmed users, Bureaucrats and Sysops emeriti
1,680

edits

Navigation menu