Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


httpAuth and Proxy Servers

Keywords: 	 httpAuth Proxy Servers 

Question:

I'm using the following code to try and download a text file from the Internet via my WinProxy 2.0 Proxy Server:
	httpFirewall(1,Proxy,"80",0,0)
	HTTPAuth(user, pass)
	URL="http://www.tristategt.org/"
	serv=httpGetServer(URL, "")
	path=('/member/cpeak/cpgraph.cfm')
	a=httpRecvText(serv, path, 1000, 0) 
	message("File Contents are", a)
and all I get in response is this message (from my WinProxy proxy/firewall, I think):

403 Forbidden

The request was not properly formatted. A possible security risk detected.

I can go through this same proxy server using a browser and get the file. Any ideas? Am I missing something here?

Answer:

The httpAuth is for the remote web site, not the proxy server.

What settings does your browser have for the proxy server? Does it need a userid and password (to be supplied in the httpFireWall statement?)


Article ID:   W12658
Filename:   httpAuth and Proxy Server.txt