﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
814	HttpSetProxy - proxy with credentials	Xenobiologist	Valik	"See here : http://www.autoitscript.com/forum/index.php?showtopic=88991

Using HttpSetProxy with credentials which means option 2 and then using InetGet does not seem to work

Little script:


{{{
#include<Inet.au3>
Global $user = 'xxx'
Global $pass = 'xxx'
Global $url = 'www.autoit.de'
Global $proxy = 'proxy.xxx.de:8080'

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 & '\test.gmx') & @CRLF) ; returns 0
ConsoleWrite(InetGet($url, @DesktopDir & '\test.txt') & @CRLF) ; returns 0
}}}

Mega
 "	Bug	closed	3.3.1.0	AutoIt	3.3.0.0	None	Fixed	HttpSetProxy	Valik
