
NPN_PostURLNotify
Posts data to a URL, and receives notification of the result.
Syntax
#include <npapi.h> NPError NPN_PostURLNotify(NPP instance, const char* url, const char* target, uint32 len, const char* buf, NPBool file, void* notifyData);
Parameters
The function has the following parameters:
Returns
- If successful, the function returns NPERR_NO_ERROR.
- If unsuccessful, the plug-in is not loaded and the function returns an error code. For possible values, see Error Codes.
Description
NPN_PostURLNotify functions identically to NPN_PostURL, with these exceptions:
- NPN_PostURLNotify supports specifying headers when posting a memory buffer.
- NPN_PostURLNotify calls NPP_URLNotify upon successful or unsuccessful completion of the request. For more information, see NPN_PostURL.
NPN_PostURLNotify is typically asynchronous: it returns immediately and only later handles the request and calls NPP_URLNotify.
If this function is called with a target parameter value of _self or a parent to _self, this function should return an INVALID_PARAM NPError. This is the only way to notify the plug-in once it is deleted. See NPN_GetURL for information about this parameter.
See Also
NPN_GetURL, NPP_URLNotify, NPN_PostURL
|
Netscape Communications http://developer.netscape.com |
