Curl and redirects

Jacob Carlborg doob at me.com
Mon Dec 17 06:12:25 PST 2012


On 2012-12-17 12:24, Chris wrote:
> Hi,
>
> I am trying to log into a web application using curl. The web app
> sends a 302 redirect after posting the data (successful log in -
> I can see the successful login in the web apps log files).
>
> Maybe I am doing something wrong - but I have just copied the
> code of _basicHTTP form curl.d to my own method to authenticate.
>
> The exception I'll receive on perform is:
>
> std.net.curl.CurlException at std/net/curl.d(3348): Send failed
> since rewinding of the data stream failed on handle 7FCABA819400
>
> My Code:

> Does anybody have a clue, what I am doing wrong?

A guess: when using the command line tool one needs to explicit enable 
redirects, is there something similar in the API?

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list