WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

HTTP Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 1999:04:15:16:48:44
Last Updated: 1999:04:15:16:48:44