[AOLSERVER] error with ns_httpget

2006-03-30 Thread Thorpe Mayes
I am trying to go here: ns_httpget http://username:[EMAIL PROTECTED]/member/service/csv/geocode?address= $newaddress,+$newcity+$state and am getting this error message: Error: expected integer but got [EMAIL PROTECTED] expected integer but got [EMAIL PROTECTED] while executing ns_sockopen

Re: [AOLSERVER] error with ns_httpget

2006-03-30 Thread Bas Scheffers
Looks like some regexp failing on the username:password. ns_httpopen (called by ns_httpget) doesn't know how to handle basic auth at all. You could try using the Tcl http package instead, but I don't know if it does it: http://tcl.tk/man/tcl8.4/TclCmd/http.htm Otherwise you will have to hack

Re: [AOLSERVER] error with ns_httpget

2006-03-30 Thread Titi Ala'ilima
ACS (Open, etc.) has a version of httpget called util_httpget, which allows a little more customization, i.e. allowing you to set headers. So the equivalent to putting the username and password into the URL is adding an Authorization header of the form Basic $token where token is