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.html

Reply via email to