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

curl-and-php

Re: CURL and login dialog box

From: Dave Withnall <withnall_at_connexus.net.au>
Date: Sat, 03 May 2003 17:16:46 +1000

I'd love to help. but someone designed a website that turns itself off out
of hours? very strange for the net.

If the login dialog box is something that pops up in your browser then you
need to send the username & password using CURLOPT_USERPWD

If the username & password are part of a form then you need to look at the
names of the form elements (either view the page source or use the formfind
perl script on the curl website) After you've got that you use the
CURLOPT_POSTFIELDS command as per the manual.

Cheers
D.

At 06:09 AM 3/05/2003 +0000, you wrote:
>Dear Members,
>
>I want to access a page on another server that is using SSL. The address
>of the page is http://www.techdata.com/reseller/validation/login.asp .
>When this page open its shows a login dialog box. after providing the
>correct id,password this page redirect he visiter to
>https://www.techdata.com/content/navigation/index.asp
>
>
>I want to access the page contents of
>https://www.techdata.com/content/navigation/index.asp by using CURL and
>PHP. but i do not know what are the variables FORM POST names that the
>login.asp page received and validate the sign in. How can i view the
>Posting variables names from the login dialog box?
>
>
>curl_setopt($ch, CURLOPT_POSTFIELDS,$POSTFIELDS);
>
>
>what are he names of POSTFIELDS that does not appear on login Dialog box?
>
>
>
>Regards,
>Imran Khalid
>imranlink_at_hotmail.com
>wazirabad_at_yahoo.com
>
>
>_________________________________________________________________
>Add photos to your messages with MSN 8. Get 2 months FREE*.
>http://join.msn.com/?page=features/featuredemail
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-05-03