Re: Problems with tcl SOAP and https via proxy



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



Relevant Pages

  • Re: httpwebrequest with https behind proxy with authentication
    ... contact Microsoft Customer Support ... httpwebrequest with https behind proxy with authentication ... Our proxy server uses NTLM authentication and as you suggested I ...
    (microsoft.public.dotnet.framework)
  • Re: SSL security authorization?
    ... > I see that we are talking about a kind of interactive authentication ... > (Most of the time the actual HTTPS url is masked ... > the secure server.) ... either urllib or urllib2. ...
    (comp.lang.python)
  • Re: httpwebrequest with https behind proxy with authentication
    ... Our proxy server uses NTLM authentication and as you suggested I modified the code as follows: ... I still receive "The remote server returned an error: Proxy Authentication Required." ... and it works if I use http instead of https or if I disable authentication on the proxy ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework)
  • Re: Error: HTTP/1.1 407 Proxy Authentication Required
    ... It appears that the tool supports server auth, ... Scan through their FAQ and see what they say about proxy authentication. ... It has some built in http tests that supports NTLM ...
    (microsoft.public.isa)
  • RE: Proxy requires authentication
    ... problem where it is being asked to authenticate to the proxy server. ... sure the problematic client also have Firewall Client installed. ... | Thread-Topic: Proxy requires authentication ...
    (microsoft.public.windows.server.sbs)