Http put


I am trying to send data to a server by using HTTP POST. when i use the following function:

[b]http_ClientTestCtx.DataChannel = wip_putFileOpts(

	                                        http_ClientTestCtx.CnxChannel,  // session channel
	                                         HTTP_STR_URL,                   // URL to receive the data
	                                         http_ClientTestDataHandler,     // data handler
	                                         &http_ClientTestCtx,            // context
	                                         WIP_COPT_HTTP_METHOD,  WIP_HTTP_METHOD_POST,
	                                         // request headers
	                              WIP_COPT_HTTP_HEADER, "Content-Type", "application/x-www-form-urlencoded",
	                                         WIP_COPT_HTTP_HEADER, "Content-Length", 60,

i get the following traces:

[b][HTTP] new request PUT HTTP/1.1 @ 18
[HTTP] req parsed URL: /testpost.php at
[HTTP] connect to host:

HTTP data channel created

http_ClientTestDataHandler: Start

http_ClientTestDataHandler: WIP_CEV_WRITE

http_ClientTestDataHandler: 60 bytes written[/b]

I expect an HTTP POST request but instead i get an HTTP PUT request how can i solve this problem?

I want to post name/value pairs on the server but i only know how to send a buffer. The server does not recognise this. How can i send name/value pairs to the server ?