# Get a variable from a cgi page..

## Recommended Posts

Hello,

All i want to do is to get a variable from this wepage:

[You can't see it if you are not logged in]

I just want to get a number which change oftenly on this page [as text, bold one]

2 problems: Secured, .cgi file...

I tried:

#include <IE.au3>
$win = _IECreate ("https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi?savedfiles=1&forbiddenfiles=0", 1, 1, 0)$txt = _IEBodyReadHTML ($win) MsgBox(0, "Body Text",$txt)

To get the html source of this page, but it returns me an error:

--> IE.au3 Warning from function _IEAttach, $_IEStatus_NoMatch D:\AutoIt3\beta\Include\IE.au3 (2161) : ==> The requested action with this object has failed.: Return$o_object.document.body.innerHTML

Return \$o_object.document^ ERROR

It works with google, it must be because its a CGI file ..

Do you guys know if i can do a such thing?

If you explain me how to get the HTML source code, I will figure out how i can get only the number.

Thanks a lot

##### Share on other sites

My guess is the last 0.. try change it to the 1.. you have to wait for it to load to read the html

Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

##### Share on other sites

Great, thanks its working, im gonna try to get this code.

## Create an account

Register a new account

• ### Recently Browsing   0 members

×

• Wiki

• Back

• #### Beta

• Git
• FAQ
• Our Picks
×
• Create New...