autmated log in to a site which requires basic authenticatio

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
amitava
Forum Newbie
Posts: 3
Joined: Tue Dec 20, 2005 5:14 am

autmated log in to a site which requires basic authenticatio

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Sounds like you need cURL

http://www.php.net/curl
amitava
Forum Newbie
Posts: 3
Joined: Tue Dec 20, 2005 5:14 am

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Use CURL again? :?

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

:)
Post Reply