Sign in to follow this  
Followers 0
eHrgo

[InetGet] - Always @error. was working!

75 posts in this topic

#1 ·  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.

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#4 ·  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

Share this post


Link to post
Share on other sites

#5 ·  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.

Share this post


Link to post
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:// -

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

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Oo, i always have got a failed. Im gonna try to reboot my connection/computer.


Sorry for my Bad English.

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Do you have the right DLL installed on this PC?


[center]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.[/center]

Share this post


Link to post
Share on other sites

Smoke_N, interesting! What dll would that be?


A decision is a powerful thing

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

[center]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.[/center]

Share this post


Link to post
Share on other sites

Smoke_N, interesting! What dll would that be?

wininet.dll

[center]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.[/center]

Share this post


Link to post
Share on other sites

Cool thanks Smoke_N for the name of the dll

eHrgo, have you tried just using wrapper (F5 in Scite)?


A decision is a powerful thing

Share this post


Link to post
Share on other sites

#16 ·  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.

Share this post


Link to post
Share on other sites

Maybe your shitlisted there or something...

Try removing ie's cookies and get a new ip (reconnect if yours id dynamic)


CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map

Share this post


Link to post
Share on other sites

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


Sorry for my Bad English.

Share this post


Link to post
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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0