curl-users
Re: curl mixing up url in query?
Date: Thu, 26 Aug 2004 16:02:38 -0300
You were right, there was a LF (^M) at the end of line. I removed it
using sed and now it's working wonders. Thanks a lot!
Oh, BTW, using --trace would display a dot '.' instead of the LF, which
was misleading as well (but not as much as the -v output). I was able
to spot the ^M while editing my output file using VIM.
Thanks again for the assistance. :)
On Thu, 26 Aug 2004 09:41:39 +0200 (CEST), Daniel Stenberg
<daniel-curl_at_haxx.se> wrote:
> On Wed, 25 Aug 2004, Alcides Carlos de Moraes Neto wrote:
>
> > Note it's the same URL. But in the second case, I don't know how the
> > "HTTP/1.1" part of the query somehow gets crammed in the middle of the URL?
> > where it should be 7001!7002.
>
> I believe you've managed to get a CR or a CRLF included somewhere in the URL,
> and thus you've been mislead by the output.
>
> I suggest you use --trace instead of -v once to verify this.
>
> In the code, there is _nothing_ being sent after the HTTP/[version] string
> before the CRLF (lib/http.c around line 1590).
>
> --
> Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
> Dedicated custom curl help for hire: http://haxx.se/curl.html
>
-- Ats, Alcides Carlos de Moraes Neto "Victory means nothing. The fight is everything."Received on 2004-08-26