Jump to content

[InetGet] - Always @error. was working!


Recommended Posts

Wow, I don't know how that works, but thats working...

In fact thats working for only Collector Zone, return me the login page for Premium Zone.

I don't know if you saw that there is two links:

https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi <- Premium account [$]

https://ssl.rapidshare.com/cgi-bin/collectorszone.cgi <- Free account [Free]

I checked both,

With my collector's [second link] login & pw its working [return me Zone page]

With my premium's one.. [First Link] its returning me the login page [without any error in it]

Both look exactly the same! Maybe one is more secured?

Thank so much, im gonna try to understand this code and make the Premium zone work.

Sorry for my Bad English.
Link to comment
Share on other sites

  • Replies 74
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Wow, I don't know how that works, but thats working...

In fact thats working for only Collector Zone, return me the login page for Premium Zone.

I don't know if you saw that there is two links:

https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi <- Premium account [$]

https://ssl.rapidshare.com/cgi-bin/collectorszone.cgi <- Free account [Free]

I checked both,

With my collector's [second link] login & pw its working [return me Zone page]

With my premium's one.. [First Link] its returning me the login page [without any error in it]

Both look exactly the same! Maybe one is more secured?

Thank so much, im gonna try to understand this code and make the Premium zone work.

have you verified that you're able to do what you want manually? i mean it is possible that they've blocked you by MAC id or something.....
Link to comment
Share on other sites

Those links, aren't working Manually [both] But Piccaso's last script make one of them work [Collector].

odd. well trying to automate something that isn't working manually seems like a bit of a waste of time. you should try to identify why it's not working manually first, then troubleshoot/debug your script once you're sure that any remaining issues are indicative of a problem with the script.
Link to comment
Share on other sites

that's because the form names are different.

Dim $sLogin = "user"
Dim $sPassw = "pw"
Dim $iPidCurl = Run(@ComSpec & " /c " & 'curl -k -d login=' & $sLogin & ' -d password=' & $sPassw _
                & ' https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi', @ScriptDir, @SW_HIDE,2+4)
Dim $iPeek,$sOut
While 1
    $iPeek = StdoutRead($iPidCurl,0,True)
    If @error Then ExitLoop
    If $iPeek > 0 Then $sOut &= StdoutRead($iPidCurl,$iPeek)
WEnd

ConsoleWrite($sOut)

its called 'login' on the premium page and 'username' on the collectors thing...

edit:

http authentication does not work because rapidscare's cgi doesent accept it that way.

you have to send it as post data

Edited by piccaso
CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map
Link to comment
Share on other sites

Ow!

So I've understood the whole script! Gennnnnius!

You're such a pro, I didn't understand that -d are the Form names. I though it was just a command.

THANKS

IT WORKS! Piccaso, I'm your Fan.

Edited by eHrgo
Sorry for my Bad English.
Link to comment
Share on other sites

  • 1 year later...

ok lets see for how long muttley

Well for this long...

The curl function is still working..(if i try it in dos)

But it is not working when i put it in autoit.

runwait does work bt i cant get the stream out....

Please help...

Link to comment
Share on other sites

  • Developers

Well for this long...

The curl function is still working..(if i try it in dos)

But it is not working when i put it in autoit.

runwait does work bt i cant get the stream out....

Please help...

You will have to be more specific than this before we can help you.

Post your scriptlet and whats going wrong with it.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

try this one

Dim $sLogin = "user"
Dim $sPassw = "pw"
Dim $iPidCurl = Run(@ComSpec & " /c " & 'curl -k -d username=' & $sLogin & ' -d password=' & $sPassw _
                & ' https://ssl.rapidshare.com/cgi-bin/collectorszone.cgi', @ScriptDir, @SW_HIDE,2+4)
Dim $iPeek,$sOut
While 1
    $iPeek = StdoutRead($iPidCurl,0,True)
    If @error Then ExitLoop
    If $iPeek > 0 Then $sOut &= StdoutRead($iPidCurl,$iPeek)
WEnd
ConsoleWrite($sOut)
Indeed you right sorry...

anyway this script above does not work anymore...

Imange to get it work if i change the flag to 3. but it only work for 1 or 2 times and then it stop please help.

Edit

well i see that also with flag 2+4 its working but only once every 5 attemptes

Edited by oren
Link to comment
Share on other sites

  • Developers

You need to read both the STDOUT and STDERR. try:

Dim $sLogin = "user"
Dim $sPassw = "pw"
Dim $iPidCurl = Run(@ComSpec & " /c " & 'curl -k -d username=' & $sLogin & ' -d password=' & $sPassw _
                & ' https://ssl.rapidshare.com/cgi-bin/collectorszone.cgi', @ScriptDir, @SW_HIDE,2+4)
Dim $sOut
While 1
    $sOut &= StdoutRead($iPidCurl)
    If @error Then ExitLoop
WEnd
While 1
    $sOut &= StderrRead($iPidCurl)
    If @error Then ExitLoop
WEnd
ConsoleWrite($sOut)

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...