Triton Posted January 21, 2005 Posted January 21, 2005 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) Triton Triton
ezzetabi Posted January 21, 2005 Posted January 21, 2005 Very strange, what is the value of $Program ?
ezzetabi Posted January 21, 2005 Posted January 21, 2005 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.
Triton Posted January 21, 2005 Author Posted January 21, 2005 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
therks Posted January 21, 2005 Posted January 21, 2005 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. My AutoIt Stuff | My Github
Triton Posted January 21, 2005 Author Posted January 21, 2005 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.exePlease 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 serverVia: URL: http://download.nai.com/products/mcafee-avert/stinger.exeTime: 1/21/2005 5:09:30 PM GMT Triton
kpu Posted January 21, 2005 Posted January 21, 2005 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") http://www.kpunderground.com
Triton Posted January 21, 2005 Author Posted January 21, 2005 Please someone give me some insight to this AUTH issue from above!!! Triton
Administrators Jon Posted January 21, 2005 Administrators Posted January 21, 2005 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.
Fzz Posted January 20, 2006 Posted January 20, 2006 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
seandisanti Posted January 20, 2006 Posted January 20, 2006 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!Fzif 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.
Fzz Posted February 4, 2006 Posted February 4, 2006 Well, I thought I might take a look at this since I found this cool site:http://ntlmaps.sourceforge.net/and this cool site:http://www.innovation.ch/personal/ronald/ntlm.htmlI was definately able to tunnel out using the ntlmaps-setup-0.9.9.5.exe from the above site.Does Autoit no longer accept end user code contributions? Thanks,Fz
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now