Opened 15 years ago

Closed 15 years ago

#814 closed Bug (Fixed)

HttpSetProxy - proxy with credentials

Reported by: Xenobiologist Owned by: Valik
Milestone: Component: AutoIt
Version: Severity: None
Keywords: HttpSetProxy Cc: Valik


See here :

Using HttpSetProxy with credentials which means option 2 and then using InetGet does not seem to work

Little script:

Global $user = 'xxx'
Global $pass = 'xxx'
Global $url = ''
Global $proxy = ''

ConsoleWrite('!Proxy2 : ' & HttpSetProxy(2, $proxy, $user, $pass) & @CRLF) ; retunrs 1
Global $siteContent = _INetGetSource($url) 
ConsoleWrite($siteContent & @CRLF) ; cache access denied
ConsoleWrite('! - - - ' & @CRLF)
Global $siteContent = _INetGetSource($user & ":" & $pass & "@" & $url) 
ConsoleWrite($siteContent & @CRLF) ; works good
ConsoleWrite(InetGet($user & ":" & $pass & "@" & $url, @DesktopDir & '\') & @CRLF) ; returns 0
ConsoleWrite(InetGet($url, @DesktopDir & '\test.txt') & @CRLF) ; returns 0


Attachments (0)

Change History (6)

comment:1 Changed 15 years ago by Jpm

  • Owner set to Jon
  • Status changed from new to assigned

I hope some dev have access to a proxy protected. I don't.
Please Jon.

comment:2 Changed 15 years ago by /dev/null

_INetGetSource() uses the api call InternetOpen().

From Inet.au3:
Local $ai_IO = DllCall($h_DLL, 'int', 'InternetOpen', 'str', "AutoIt v3", 'int', 0, 'int', 0, 'int', 0, 'int', 0)

HOWEVER: It does NOT set any proxy settings. All proxy related parameters are set to 0. See here:

Conclusion: _InetGetSource does not support proxy usage. InetGet() is different!


comment:3 Changed 15 years ago by Jpm

  • Resolution set to No Bug
  • Status changed from assigned to closed

You right Kurt,
don't mix basic function as HttpSetProxy() and UDF.
If such parameters are needed for the UDF just extend the UDF.

comment:4 Changed 15 years ago by Valik

  • Resolution No Bug deleted
  • Status changed from closed to reopened

Err, I'm not done with this ticket yet, don't close it.

comment:5 Changed 15 years ago by Valik

  • Owner changed from Jon to Valik
  • Status changed from reopened to accepted

comment:6 Changed 15 years ago by Valik

  • Milestone set to
  • Resolution set to Fixed
  • Status changed from accepted to closed

Fixed in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Valik.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.