cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURL custom request

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 8 Jan 2013 18:19:20 +0100

On Tue, Jan 08, 2013 at 11:12:14PM +0700, Dung Nguyen wrote:
> hi!
> I have server with i need to call the request like this
> GET /test
>
>  HTTP/1.1

I'm assuming that this is the URL-decoded version of
GET /test%0a%0a and not some other unprintable characters. Not that it
really matters, because HTTP bans them all, and as far as NL (a.k.a.
%0a) goes, libcurl appears to strip it out before sending the URI. The
proper way to insert such characters into a URL is to percent encode
them, which libcurl handles just fine.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-01-08