curl-library
RE: HTTP Redirection to Relative path
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 22 Mar 2012 19:47:54 +0100 (CET)
Date: Thu, 22 Mar 2012 19:47:54 +0100 (CET)
On Thu, 22 Mar 2012, Woods wrote:
> I know the cause of repeating requesting the same url, rather than fetching
> the HTTP Location. It is because my URL contains a '\n" at the end. When I
> remove this "\n" from url string, libcurl returns to normal. Well, I will
> fix my code, but curious if libcurl can improve somewhere to counter this
> drawback.
libcurl is deliberately very liberal in what it accepts to allow the user to
craft things that aren't strictly kosher. Of course we could change that or we
could introduce a "strict parsing" option, but I'm not convinced we really
need that.
Anyone else have any opinion in this matter?
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-03-22