cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: session

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 31 Jan 2003 16:13:58 +0100 (CET)

On Fri, 31 Jan 2003, Cenk Uysal wrote:

> i try to login to a webpage by curl. this webpage has a login screen with
> username and password fields. when user enters these values, they are
> checked by "auth.asp" script. if values r ok, a session is opened and user
> is redirected to "xxx.asp". how can i follow such a process with curl? i
> can send user and password values over the url. it accepts that. but how
> can i get the session value after a session is opened and pass this value
> to redirected page?

You send a POST to the URL given as method in the login <form> tag.

You receive headers and HTML back. The headers might redirect you to another
page that return other HTML. You may receive cookies in the headers.

That is what you get.

What is the "session value"?

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
Received on 2003-01-31