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 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

Dear Vladimir,
thank you very much for your answer - and sorry for the delay -
but I had problems compiling dmd myself on osx.

Sorry about that. In my haste to answer, I've misread your
question. I see now that you're using the lower-level objects
directly instead of the post function. My patch fixes the
behavior for the post function.
If you wish to continue using the HTTP type directly, you'll
basically need to apply the same patch as in my pull request to
your code, and add a client.handle.onSeek handler which
implements seeking over the data you're uploading. Alternatively,
have you tried constructing a custom HTTP object and passing that
as the last parameter to post?

Sorry about that. In my haste to answer, I've misread your
question. I see now that you're using the lower-level objects
directly instead of the post function. My patch fixes the
behavior for the post function.

that's my fault - should have looked in there too. After adding
those fixes it works :)
Thank you very much for your help,
Christian