Jump to content



Photo

[InetGet] - Always @error. was working!


  • Please log in to reply
74 replies to this topic

#1 eHrgo

eHrgo

    Adventurer

  • Active Members
  • PipPip
  • 112 posts

Posted 08 March 2007 - 05:52 PM

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, 08 March 2007 - 06:16 PM.

Sorry for my Bad English.Posted Image







#2 JohnBailey

JohnBailey

    Scripter

  • Active Members
  • PipPipPipPipPipPip
  • 943 posts

Posted 08 March 2007 - 06:16 PM

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

#3 Jos

Jos

    oh joy ...

  • Developers
  • 21,104 posts

Posted 08 March 2007 - 06:19 PM

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                                                                 Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)


#4 JohnBailey

JohnBailey

    Scripter

  • Active Members
  • PipPipPipPipPipPip
  • 943 posts

Posted 08 March 2007 - 06:20 PM

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, 08 March 2007 - 06:22 PM.

A decision is a powerful thing

#5 eHrgo

eHrgo

    Adventurer

  • Active Members
  • PipPip
  • 112 posts

Posted 08 March 2007 - 06:27 PM

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, 08 March 2007 - 06:29 PM.

Sorry for my Bad English.Posted Image

#6 Jos

Jos

    oh joy ...

  • Developers
  • 21,104 posts

Posted 08 March 2007 - 06:56 PM

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                                                                 Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)


#7 eHrgo

eHrgo

    Adventurer

  • Active Members
  • PipPip
  • 112 posts

Posted 08 March 2007 - 07:03 PM

Oo, i always have got a failed. Im gonna try to reboot my connection/computer.
Sorry for my Bad English.Posted Image

#8 eHrgo

eHrgo

    Adventurer

  • Active Members
  • PipPip
  • 112 posts

Posted 08 March 2007 - 07:29 PM

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 Image

#9 JohnBailey

JohnBailey

    Scripter

  • Active Members
  • PipPipPipPipPipPip
  • 943 posts

Posted 08 March 2007 - 08:04 PM

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

#10 SmOke_N

SmOke_N

    It's not what you know ... It's what you can prove!

  • Moderators
  • 15,729 posts

Posted 08 March 2007 - 08:36 PM

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.


#11 JohnBailey

JohnBailey

    Scripter

  • Active Members
  • PipPipPipPipPipPip
  • 943 posts

Posted 08 March 2007 - 08:38 PM

Smoke_N, interesting! What dll would that be?
A decision is a powerful thing

#12 eHrgo

eHrgo

    Adventurer

  • Active Members
  • PipPip
  • 112 posts

Posted 08 March 2007 - 08:54 PM

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

#13 SmOke_N

SmOke_N

    It's not what you know ... It's what you can prove!

  • Moderators
  • 15,729 posts

Posted 08 March 2007 - 08:56 PM

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.


#14 SmOke_N

SmOke_N

    It's not what you know ... It's what you can prove!

  • Moderators
  • 15,729 posts

Posted 08 March 2007 - 08:57 PM

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.


#15 JohnBailey

JohnBailey

    Scripter

  • Active Members
  • PipPipPipPipPipPip
  • 943 posts

Posted 08 March 2007 - 09:03 PM

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

#16 eHrgo

eHrgo

    Adventurer

  • Active Members
  • PipPip
  • 112 posts

Posted 08 March 2007 - 09:03 PM

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

Edited by eHrgo, 08 March 2007 - 09:08 PM.

Sorry for my Bad English.Posted Image

#17 piccaso

piccaso

    Rock me, Amadeus!

  • MVPs
  • 893 posts

Posted 08 March 2007 - 10:45 PM

Maybe your shitlisted there or something...
Try removing ie's cookies and get a new ip (reconnect if yours id dynamic)
Posted Image CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map

#18 eHrgo

eHrgo

    Adventurer

  • Active Members
  • PipPip
  • 112 posts

Posted 09 March 2007 - 07:00 AM

Arg... not working, im gonna try with my other computer on the same local network.
Sorry for my Bad English.Posted Image

#19 eHrgo

eHrgo

    Adventurer

  • Active Members
  • PipPip
  • 112 posts

Posted 10 March 2007 - 05:22 PM

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

#20 piccaso

piccaso

    Rock me, Amadeus!

  • MVPs
  • 893 posts

Posted 11 March 2007 - 01:28 AM

As an alternative to inetget you could try curl
Posted Image CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users