cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: help with form fill

From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Wed, 26 Mar 2008 13:45:24 +0100

Pullus Cuetlachtli wrote:
> Yeah, you're absolutely right. This "swsessioncookie" string is same
> as in "Cookie: session=" header. Is there a way to use it in the URL?
> when I use the old one, I get "session timeout" from server. Maybe to
> save the cookie and then immediately send it with curl?

(Please don't top-post)

You should probably use some perl/php/whatever magic to parse the HTML
form and extract the action URL: First use curl to fetch the HTML page
(and store the session cookie), grab the URL from the form tag and then
issue a POST with the correct URL.

Linus
Received on 2008-03-26