Nagesh
10-17-2005, 11:00 AM
we have a proxy to connect the internet
i am using follworing script in my code
_Url="http://www.microsoft.com";
used to get the proxy information from the user input
_tableProxyData ={PUserName="",PPassword="",PServerAddress=""};
_tableProxyData.PUserName =SessionVar.Expand("%uname%");
_tableProxyData.PPassword=SessionVar.Expand("%password%");
_tableProxyData.PServerAddress =SessionVar.Expand("%server%");
Dialog.Message("",_tableProxyData.PUserName.._tableProxyData.PPassw ord.._tableProxyData.PServerAddress);
-- Actual checking for an active Internet connection
result2 = HTTP.TestConnection(_Url, 20, 80, nil, _tableProxyData);
local http_error = HTTP.GetHTTPErrorInfo();
local error_text = http_error.Message .. "\r\nServer Status: " .. http_error.Status;
Dialog.Message("HTTP Error: " .. http_error.Number, error_text, MB_OK, MB_ICONEXCLAMATION);
still i am getting 407 error code.
Please suggest what i am missing here.
_Nagesh
i am using follworing script in my code
_Url="http://www.microsoft.com";
used to get the proxy information from the user input
_tableProxyData ={PUserName="",PPassword="",PServerAddress=""};
_tableProxyData.PUserName =SessionVar.Expand("%uname%");
_tableProxyData.PPassword=SessionVar.Expand("%password%");
_tableProxyData.PServerAddress =SessionVar.Expand("%server%");
Dialog.Message("",_tableProxyData.PUserName.._tableProxyData.PPassw ord.._tableProxyData.PServerAddress);
-- Actual checking for an active Internet connection
result2 = HTTP.TestConnection(_Url, 20, 80, nil, _tableProxyData);
local http_error = HTTP.GetHTTPErrorInfo();
local error_text = http_error.Message .. "\r\nServer Status: " .. http_error.Status;
Dialog.Message("HTTP Error: " .. http_error.Number, error_text, MB_OK, MB_ICONEXCLAMATION);
still i am getting 407 error code.
Please suggest what i am missing here.
_Nagesh