Jump to content

Recommended Posts

Posted (edited)

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.
  • Replies 74
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

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
  • Developers
Posted

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.
  :)

Posted (edited)

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
Posted (edited)

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.
  • Developers
Posted

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.
  :)

Posted

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.
Posted

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
  • Moderators
Posted

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.

Posted

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

Sorry for my Bad English.
  • Moderators
Posted

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.

  • Moderators
Posted

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.

Posted (edited)

Got it .... Only this site is giving me an error, only CGIs files from this site.

Edited by eHrgo
Sorry for my Bad English.
Posted

Arg... not working, im gonna try with my other computer on the same local network.

Sorry for my Bad English.
Posted

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.

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
  • Recently Browsing   0 members

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