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

curl-and-php

Re: session and NO cookies

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 4 Nov 2003 13:42:26 +0100 (CET)

On Tue, 4 Nov 2003, beshoo wrote:

> i have a asp page this page need a user name and password this page just use
> the session and there is NO cookies used

What is "the session"? That's not a term I'm familiar with. Can you show us
with HTML and HTTP headers?

> and when I pass the username and password it will redirect me to other page
>
> by using this :
>
> curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1);
>
> cos if not I will have Object Move

Of course, as that's how curl is set to work.

> I tried to use
>
> curl_setopt($ch,CURLOPT_COOKIE,"");

Why? What's that supposed to do for you?

> when I test the script it just redirect me to the login.asp again .

And what can we do to help you fix this? You probably don't login to the login
page properly, the site detects that and sends you back to retry.

If you don't tell us details, we can't help you with details.

-- 
 Daniel - been obfuscating curl source code since 1998.
 [[ Do not post private mails to this email address. They won't reach me. ]]
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
Received on 2003-11-04