how to get the "view source" of a web page...??

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
james123
Newbie
Posts: 6
Joined: Sun Dec 31, 2006 6:57 pm

how to get the "view source" of a web page...??

Post by james123 » Sun Dec 31, 2006 7:03 pm

does any1 have the code that gets the content of the "view source" on ie?
something like a URL has to be given and it returns the source of the page

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Mon Jan 01, 2007 1:20 am

Are you looking for HTTPREQUEST, using the GET method?

See Help for HTTPREQUEST, probably want to use LocalFilename
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

james123
Newbie
Posts: 6
Joined: Sun Dec 31, 2006 6:57 pm

Post by james123 » Tue Jan 02, 2007 12:46 pm

yes ive tried but i get something encrypted, not the real html source.

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Tue Jan 02, 2007 3:42 pm

Do you see the source if you "view source" in IE (or equivalent in FF)?

Is it a plain .html page, or something generated by a script, e.g. php?

Can you tell us the URL?

james123
Newbie
Posts: 6
Joined: Sun Dec 31, 2006 6:57 pm

problem with a string

Post by james123 » Tue Jan 02, 2007 8:10 pm

thanks some1 else helped me... problem was that the url i tried to opened was some kind of pop-up.

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