how to login webpages?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
houhou87
Newbie
Posts: 2
Joined: Mon Sep 13, 2010 1:43 am

how to login webpages?

Post by houhou87 » Fri Jan 28, 2011 4:09 am

dear team,

i m newbie of this macro here. and i would like to create one script to login into one page (aspx) in my company website there.

but i follow the httprequest.

For basic authentication where a username and password is required by the server before the request will complete put the username and password in the URL using the following format: http://username:[email protected]/etc.etc

Example:
HTTPRequest>http://master:123@localhost/peopleess/userlogin.aspx

but in the end, it did not login into it~

kindly advise.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Jan 28, 2011 9:02 am

That will do a direct HTTP post in the background and would only work for basic authentication. It won't be visible and will have no effect on your web browser session.

If you want to have internet explorer logged into a web page then possibly the easiest thing to do is just to record the login in WebRecorder. But other options are to simulate keystrokes / use image recognition etc.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts