Jump to content

[InetGet] - Always @error. was working!


Recommended Posts

hi, I have a big script which is based on InetGet Function, today I launched it (I used it for 2 weeks) and it doesn't work any more.

I searched, i create a new little script to test:

InetGet ( 'www.google.fr', 'file.txt', 1)
If @error Then 
    MsgBox (0, '', 'failed')
ElseIf
    MsgBox (0, '', 'Suceed')
Endif

I always got the error message now! Wth? Is that working on your computer?

For sure i Checked my connection on IE, working great.

Thanks

Edited by eHrgo
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

I didn't understand what you were trying to DL from the small script you wrote, but I hope this helps

$dl = InetGet ( 'http://www.autoitscript.com/autoit3/docs/introduction.htm', @ScriptDir&'\file.html', 1, 1)
        If $dl = 0 Then 
            MsgBox (0, '', 'failed')
        Else
            MsgBox (0, '', 'Suceed')
        Endif
        
While @InetGetActive
  TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16)
  Sleep(250)
Wend

MsgBox(0, "Bytes read", @InetGetBytesRead)
A decision is a powerful thing
Link to comment
Share on other sites

  • Developers

InetGet ( 'http://www.google.fr', 'file.txt', 1)
If @error Then 
    MsgBox (0, '', 'failed')
Else
    MsgBox (0, '', 'Suceed')
Endif

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

No, what you specifically wrote doesn't work. If you're just asking about the @error, yes that works.

If @error Then 
            MsgBox (0, '', 'failed')
        Else
            MsgBox (0, '', 'Suceed')
        Endif

Also,

The URL parameter should be in the form "http://www.somesite.com/path/file.html"

- Straight out of the manual.

JdeB pointed this out too.

Edited by JohnBailey
A decision is a powerful thing
Link to comment
Share on other sites

Ok guys, I did a mistake with my example but in fact I have that:

InetGet ( 'https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi', 'file.txt', 1 )
        If @error Then
            MsgBox (0, '', 'failed')
        Else
            MsgBox (0, '', 'Suceed')
        Endif

That worked for 1 month and now it doesn't work anymore.

Edit: Straight from the manual: The InetGet function works with http:// https:// and ftp:// -

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

  • Developers

Ok guys, I did a mistake with my example but in fact I have that:

InetGet ( 'https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi', 'file.txt', 1 )
        If @error Then
            MsgBox (0, '', 'failed')
        Else
            MsgBox (0, '', 'Suceed')
        Endif

That worked for 1 month and now it doesn't work anymore.

Edit: Straight from the manual: The InetGet function works with http:// https:// and ftp:// -

Works fine here ... what is your problem with this ?

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

Hum ... i tried everything, every links, working on every filetype: This code isn't working ...

InetGet ( 'https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi', 'file.txt', 1 )
        If @error Then
            MsgBox (0, '', 'failed')
        Else
            MsgBox (0, '', 'Suceed')
        Endif

CAn someone else confirm that its working ?

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

That exact script is working on my end. That's really odd it's not working on your end. I wish someone knew why that might be, especially since your net connection is working and the site is functional.

A decision is a powerful thing
Link to comment
Share on other sites

  • Moderators

Do you have the right DLL installed on this PC?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

  • Moderators

This scripted worked for 1 month, I reboot my computer ... doesn't work anymore. No change!!! Its not working compiled.

Well, there's obviously an issue with your computer then, not the script, if you were running a compiled version of it before, and now that compiled version isn't working on your computer any longer, then it's something you've done, not the script itself.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

  • Moderators

Smoke_N, interesting! What dll would that be?

wininet.dll

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Hum.... still weird problem:

Yesterday, it worked back..few hours later, same error.

I tried to use proxy > error, tried to delete IE cookies/cache /etc.. >error.

I tried on a different computer on the same router -> Working!

How can they identify me if its not with IP or cookies? And why can i view the page on IE and i can't download it with Inetget?

Thanks a lot

Sorry for my Bad English.
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...