 ebac5fe596
			
		
	
	ebac5fe596
	
	
	
		
			
			git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@45 119443c7-1b9e-41f8-b6fc-b9c35fce742c
		
			
				
	
	
		
			58 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 | |
| 
 | |
| <HTML>
 | |
| <HEAD>
 | |
|    <TITLE>EXPORT_SPEC int UpnpOpenHttpPost</TITLE>
 | |
|    <META NAME="GENERATOR" CONTENT="DOC++ 3.4.10">
 | |
| </HEAD>
 | |
| <BODY BGCOLOR="#ffffff">
 | |
| 
 | |
| <H2>EXPORT_SPEC int <A HREF="#DOC.DOCU">UpnpOpenHttpPost</A></H2><H2>( IN const char* url,<BR>   IN OUT void** handle,<BR>   IN const char* contentType,<BR>   IN int contentLength,<BR>   IN int timeout )</H2><BLOCKQUOTE><B>UpnpOpenHttpPost</B> 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.</BLOCKQUOTE>
 | |
| 
 | |
| <A NAME="DOC.DOCU"></A>
 | |
| <HR>
 | |
| <H2>Documentation</H2>
 | |
| <BLOCKQUOTE><B>UpnpOpenHttpPost</B> 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 <B>handle</B> and 
 | |
| <B>contentType</B>, the application is responsible for freeing this memory.
 | |
| 
 | |
| <P></BLOCKQUOTE>
 | |
| <DL><DT><DT><B>Parameters:</B><DD><B>url</B> -   The URL in which to send the POST 
 | |
| request. 
 | |
| <BR><B>handle</B> -   A pointer in which to store the 
 | |
| handle for this connection.  This 
 | |
| handle is required for futher 
 | |
| operations over this connection. 
 | |
| <BR><B>contentType</B> -   A buffer to store the media type of 
 | |
| content being sent.  
 | |
| <BR><B>contentLength</B> -   The length of the content, in bytes, 
 | |
| being posted. 
 | |
| <BR><B>timeout</B> -   The time out value sent with the 
 | |
| request during which a response is 
 | |
| expected from the receiver, failing 
 | |
| which, an error is reported. <BR><DT><B>Returns:</B><DD>  [int] An integer representing one of the following:
 | |
| <UL>
 | |
| <LI> <TT>UPNP_E_SUCCESS</TT>: The operation completed successfully.
 | |
| <LI> <TT>UPNP_E_INVALID_PARAM</TT>: Either <B>url</B>, <B>handle</B> 
 | |
| or <B>contentType</B> is not a valid pointer.
 | |
| <LI> <TT>UPNP_E_INVALID_URL</TT>: The <B>url</B> is not a valid 
 | |
| URL.
 | |
| <LI> <TT>UPNP_E_OUTOF_MEMORY</TT>: Insufficient resources exist to 
 | |
| download this file.
 | |
| <LI> <TT>UPNP_E_SOCKET_ERROR</TT>: Error occured allocating a socket and 
 | |
| resources or an error occurred binding a socket.
 | |
| <LI> <TT>UPNP_E_SOCKET_WRITE</TT>: An error or timeout occurred writing 
 | |
| to a socket.
 | |
| <LI> <TT>UPNP_E_SOCKET_CONNECT</TT>: An error occurred connecting a 
 | |
| socket.
 | |
| <LI> <TT>UPNP_E_OUTOF_SOCKET</TT>: Too many sockets are currently 
 | |
| allocated.
 | |
| </UL>
 | |
| <BR><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I></P><HR>
 | |
| <BR>
 | |
| This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
 | |
| </BODY>
 | |
| </HTML>
 |