curl-library
Re: CURL custom request
From: Michael Wood <esiotrot_at_gmail.com>
Date: Tue, 8 Jan 2013 20:50:13 +0200
Date: Tue, 8 Jan 2013 20:50:13 +0200
On 8 January 2013 20:29, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Tue, 8 Jan 2013, Dung Nguyen wrote:
>
>> I have server with i need to call the request like this
>> *GET /test*
>> *
>> *
>> * HTTP/1.1*
>
> You can often make libcurl misbehave in many ways, but I don't think you can
> force libcurl to do such a protocol violation unless you change lib/url.c
> and recompile.
>
> The URL parser stops parsing the path at first newline.
I imagine getting curl to accept "Welcome to the server\nHTTP/1.1 200
OK..." as a response would also require modifications?
-- Michael Wood <esiotrot_at_gmail.com> ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2013-01-08