PDA

View Full Version : Http.TestConnection


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

Mark
10-19-2005, 08:28 AM
HI Nagesh,

I'm a bit confused when you say:
used to get the proxy information from the user input
Does this mean that you are trying to get the proxy information from the user? Or that in that section of your script you get the proxy information from your user and store it in the session variables: "%uname%, %password%, and %server%?

One thing to keep in mind is that TrueUpdate uses Internet Explorer’s connection settings, so even if a client is behind a proxy server, they should have no problems provided they are able to use Internet Explorer successfully.

Have you tried this action without specifying any of the proxy information? What happens?

Nagesh
10-19-2005, 09:04 AM
Thnaks for info. I used session variables to hold user proxy info catched from screen. I n my case i proxy server addess is used like this
servername.vp.com . the proxy server address works with other windows applications. it started working when i used serverlocation http://servername.vp.com .

Nagesh