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
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
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