Re: Problems with tcl SOAP and https via proxy
- From: Pat Thoyts <cnggublgf@xxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 18 Oct 2006 09:24:31 GMT
"Dennis" <dennis@xxxxxxxxxx> writes:
I'm not able to get tcl SOAP to send data via https through a proxy
server ..
I'm able to do it with TclCurl...
I beleive that that the problem may be with authentication to the https
server ..
here's the TclCurl method ..
lappend httpHeaders "Content-Type: text/xml; charset=utf-8"
lappend httpHeaders "SoapAction: submitOrder"
curl::transfer -url
https://shubservices.theservice.com:443/orders/service \
-userpwd test:test \
-proxy proxy1.swmed.edu \
-proxyport 3128 \
-sslverifypeer 0 \
-httpheader $httpHeaders \
-postfields $soapEnv \
-verbose 1 \
-bodyvar httpBody
The problem is before the payload reaches the server; it's with basic
connectivity...
I've been able to get http to work via the proxy .. but not https with
authentication ..
The authentication is to the webservice, not the proxy server.
Doing SSL through an authenticating proxy requires sending headers to
the proxy on a non-SSL channel and then upgrading the link once you
have issued CONNECT and been connected to the remote site.
A function to do this exists in the autoproxy code in tcllib's http
module something along the lines of
package require autoproxy
autoproxy::init
package require tls
http::register https 443 ::autoproxy::tls_socket
# get username and password from someplace
autoproxy::configure -basic -username $username -password $password
--
Pat Thoyts http://www.patthoyts.tk/
To reply, rot13 the return address or read the X-Address header.
PGP fingerprint 2C 6E 98 07 2C 59 C8 97 10 CE 11 E6 04 E0 B9 DD
.
- Follow-Ups:
- Re: Problems with tcl SOAP and https via proxy
- From: Dennis
- Re: Problems with tcl SOAP and https via proxy
- References:
- Problems with tcl SOAP and https via proxy
- From: Dennis
- Problems with tcl SOAP and https via proxy
- Prev by Date: Re: export and import data from mysql database
- Next by Date: Re: tk_getOpenFile and symbolic links
- Previous by thread: Problems with tcl SOAP and https via proxy
- Next by thread: Re: Problems with tcl SOAP and https via proxy
- Index(es):
Relevant Pages
|