EXPORT_SPEC int UpnpOpenHttpPost

( IN const char* url,
  IN OUT void** handle,
  IN const char* contentType,
  IN int contentLength,
  IN int timeout )

UpnpOpenHttpPost makes an HTTP POST request message, opens a connection to the server and sends the POST request to the server if the connection to the server succeeds.

Documentation

UpnpOpenHttpPost makes an HTTP POST request message, opens a connection to the server and sends the POST request to the server if the connection to the server succeeds. The SDK allocates the memory for handle and contentType, the application is responsible for freeing this memory.

Parameters:
url - The URL in which to send the POST request.
handle - A pointer in which to store the handle for this connection. This handle is required for futher operations over this connection.
contentType - A buffer to store the media type of content being sent.
contentLength - The length of the content, in bytes, being posted.
timeout - The time out value sent with the request during which a response is expected from the receiver, failing which, an error is reported.
Returns:
[int] An integer representing one of the following:

Alphabetic index



This page was generated with the help of DOC++.