curl-library
How to send absolute URI?
From: Tanyaofeng <tanyaofeng_at_huawei.com>
Date: Tue, 21 Feb 2017 13:50:34 +0000
Date: Tue, 21 Feb 2017 13:50:34 +0000
1.I use curl-library 7.51 on Windows 7.
2.And I call curl_easy_setopt£¨curl£¬CURLOPT_URL£¬¡°http://www.w3.org/pub/WWW/TheProject.html%a1%b1%a3%a9;
expect to send a HTTP request like this:
get http://www.w3.org/pub/WWW/TheProject.html HTTP / 1.1<http://www.w3.org/pub/WWW/TheProject.html%20HTTP%20/%201.1>
3.But I got request like this:
get /pub/WWW/TheProject.html HTTP / 1.1
host:www.w3.org
How can I send an absolute URI HTTP request?
Thank you!
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-02-21