curl-library
full URL on POST requests
From: Jorgyano Vieira <jorgyano_at_gmail.com>
Date: Sun, 24 Jun 2012 03:41:18 -0300
Date: Sun, 24 Jun 2012 03:41:18 -0300
Hello,
Im trying to send a HTTP request of type:
---- Example 1 -------
POST http://example.com/something?var=foo&var2=bar <==== host Entire URL
Accept: */*
Accept-Language: en-us
Host: example.com
* * *
* * *
* * *
DATA
---- Using libcurl, until now I only can sen the request like this: ---- Example 2 ------- POST /something?var=foo&var2=bar <==== host omitted Accept: */* Accept-Language: en-us Host: example.com * * * * * * * * * DATA ---- is there any way to send the entire URL on POST command like example 1? -- Regards, Jorgyano Vieira ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-06-24