cURL / Mailing Lists / curl-library / Single Mail

curl-library

how to Enable always absolute URL PATH in libcurl HTTP POST request.

From: Venkataragavan Vijayakumar <venkataragavan.v_at_gmail.com>
Date: Thu, 3 Oct 2013 12:23:34 +0530

Hi All,

I have a HTTP server which is accepting only absolute URL path in HTTP POST
request.
After connecting to the server the libcurl sends only the relative URL in
the POST request.
So, Please suggest me the way to make libcurl to send absolute (complete)
URL in the POST request.

*current connection:*

Connected to example.com port 80 (#0)
POST /example/ HTTP/1.1

*Expected:*

Connected to example.com port 80 (#0)
POST www.example.com/example/ HTTP/1.1

Please help me.

Thanks,
Venkat

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-10-03