Jump to content

Recommended Posts

Posted

I've done some searching and can't really find what I'm looking for...so here it is: I'm running this code and it only downloads the web page as stinger.exe not the actual file, any ideas?

$MVAR = InetGet("http://download.nai.com/products/mcafee-avert/stinger.exe", $PROGRAM, 1)

:lmao:o:)

Triton

Triton
Posted

Did you set Opt('ExpandEnvStrings',1) ?

If not try to:

1- Activate it.

2- Use $Program = EnvGet("RamDrv") & '\McAfee\Stinger.exe' .

I prefere the second option that is more clear.

Posted

Yes those options are set "Opt('ExpandEnvStrings',1)". Also the script is being run from a CDROM thats why I use the %RamDrv% to do all my work on. Is does do the download but stinger.exe is just a html file.

Triton
Posted

What are the contents of the html file? At first I assumed the site was perhaps throwing an error document at the script. Thought maybe it was detecting it wasn't a browser or something, but like Larry's example, the script worked fine for me.

Posted

Ok I deleted my last post because now I'm have auth errors. I've set httpsetproxy(2,"myproxy:8080", "domain\username", "password")

Inetget should use this proxy setting to perform the download?

Here's the page i get as stinger.exe

Please try the following:

Click the Refresh button, or try again later.

Open the home page, and then look for links to the information you want.

If you typed the page address in the Address bar, make sure that it is spelled correctly.

Verify that the Internet access policy on your network allows you to view this this page.

If you believe you should be able to view this directory or page, please contact the Web site administrator by using the e-mail address or phone number listed on the home page.

HTTP 407 Proxy Authentication Required - The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. (12209)

Internet Security and Acceleration Server

________________________________________

Technical Information (for support personnel)

Background:

The gateway could not retrieve the requested page.

ISA Server: isa server

Via:

URL: http://download.nai.com/products/mcafee-avert/stinger.exe

Time: 1/21/2005 5:09:30 PM GMT

Triton
Posted

Here's How I've done it..

Dowloads it and tells how many bytes. You'll want to change the location it downloads to.

InetGet("http://download.nai.com/products/mcafee-avert/stinger.exe?fakeParam=42", "Stinger.exe", 1, 1)

While @InetGetActive
  TrayTip("Downloading", "Bytes = " & Round(@InetGetBytesRead / 1048576 , 2) & " MB", 10, 16)
  Sleep(250)
Wend

MsgBox(0, "Bytes Downloaded", Round(@InetGetBytesRead / 1048576 , 2) & " MB")
  • Administrators
Posted

InetGet only works with CERN proxies. I don't think it will work with ISA server.

This is something I think I'll put on the todo list as you are the second person this week having ISA proxy trouble.


 

  • 11 months later...
Posted

Not to pile on...but I too am trying to get a file through an ISA proxy server.

Manually, authenticating through IE works, but would like to use AutoIt.

I haven't tried the beta but will gladly use that if it's known to work.

Thanks!

Fz

Posted

Not to pile on...but I too am trying to get a file through an ISA proxy server.

Manually, authenticating through IE works, but would like to use AutoIt.

I haven't tried the beta but will gladly use that if it's known to work.

Thanks!

Fz

if using IE works, and you want to use AutoIT, then check out Dale's awesome IE.au3. I think you'll be able to do anything you want.
  • 2 weeks later...

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
×
×
  • Create New...