Page 1 of 1

autmated log in to a site which requires basic authenticatio

Posted: Tue Dec 20, 2005 5:20 am
by amitava
Hi all,

I want to log in to a site which requires basic autentication. But my requirement is that user will not give the userid or password. the process should be automatic. The uid & the password will be hard coded into the script.
I know you all will tell that it is funny. But this is the thing that has to be done.

Pls. help me.

regards
Amitava Chakraborty

Posted: Tue Dec 20, 2005 5:22 am
by Chris Corbyn
Sounds like you need cURL

http://www.php.net/curl

Posted: Wed Dec 21, 2005 7:35 am
by amitava
many thanks sir,


Now the authentication part is over but I have to send some data to the site. like

Version=2.0
Subject=This is a test msg
[MSISDN]
List=+919873300481
[MESSAGE]
Text=This is a text message. <LF> Courtesy of Mobile 365.
[END]


how can I do that ?

regards
Amitava Chakraborty

Posted: Wed Dec 21, 2005 8:48 am
by Chris Corbyn
Use CURL again? :?

What exactly are you trying to acheive? Is this your own website/server you're sending data to?

:)