cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: FW: Post XML Document through Microsoft ISA Server

From: Richard Thorp <Richard.Thorp_at_cedaropenaccounts.com>
Date: Mon, 6 Mar 2006 15:08:46 -0000

Thanks

I changed to -U (from -u) and got a bit further - but no document
returned but a "== Info: SSL: couldn't set callback!" message in the
trace log. I feel we are nearly there!

Command line used:

c:\curl\curl -D - -v -H "Content-type: text/xml" -d
@c:\curl\testfile.xml -U name:password -x proxy:port --proxy-ntlm
https://secure.dev.gateway.gov.uk/submission -k --trace-ascii
"c:\curl\trace2.txt" > c:\curl\response7.txt

response received:

HTTP/1.1 407 Proxy Authentication Required
Proxy-Authenticate: NTLM
TlRMTVNTUAACAAAAAAAAADgAAAACAgACx6mcGe0nKSwAAAAAAAAAAAAAAAA4AAAABQCTCAAA
AA8=
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html
Proxy-Connection: Keep-Alive
Set-Cookie: BCSI-CS0A5A210C=2; Path=/
Connection: Keep-Alive
Content-Length: 837

HTTP/1.1 200 Connection established
Proxy-agent: BlueCoat-Security-Appliance

trace log:

== Info: About to connect() to proxy 10.90.33.12 port 80
== Info: Trying 10.90.33.12... == Info: connected
== Info: Connected to 10.90.33.12 (10.90.33.12) port 80
== Info: Establish HTTP proxy tunnel to secure.dev.gateway.gov.uk:443
== Info: Proxy auth using NTLM with user 'irinternet'
=> Send header, 300 bytes (0x12c)
0000: CONNECT secure.dev.gateway.gov.uk:443 HTTP/1.0
0030: Host: secure.dev.gateway.gov.uk:443
0055: Proxy-Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAAC
0095: AAAAA=
009d: User-Agent: curl/7.15.1 (i586-pc-mingw32msvc) libcurl/7.15.1 Ope
00dd: nSSL/0.9.8 zlib/1.2.2
00f4: Proxy-Connection: Keep-Alive
0112: Content-type: text/xml
012a:
<= Recv header, 44 bytes (0x2c)
0000: HTTP/1.1 407 Proxy Authentication Required
<= Recv header, 103 bytes (0x67)
0000: Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAAAAADgAAAACAgACx6mcGe0
0040: nKSwAAAAAAAAAAAAAAAA4AAAABQCTCAAAAA8=
<= Recv header, 25 bytes (0x19)
0000: Cache-Control: no-cache
<= Recv header, 18 bytes (0x12)
0000: Pragma: no-cache
<= Recv header, 25 bytes (0x19)
0000: Content-Type: text/html
<= Recv header, 30 bytes (0x1e)
0000: Proxy-Connection: Keep-Alive
<= Recv header, 39 bytes (0x27)
0000: Set-Cookie: BCSI-CS0A5A210C=2; Path=/
<= Recv header, 24 bytes (0x18)
0000: Connection: Keep-Alive
<= Recv header, 21 bytes (0x15)
0000: Content-Length: 837
<= Recv header, 2 bytes (0x2)
0000:
== Info: Ignore 837 bytes of response-body
== Info: Proxy auth using NTLM with user 'irinternet'
=> Send header, 420 bytes (0x1a4)
0000: CONNECT secure.dev.gateway.gov.uk:443 HTTP/1.0
0030: Host: secure.dev.gateway.gov.uk:443
0055: Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEoAAAAYABgAYgAAAA
0095: AAAABAAAAACgAKAEAAAAAAAAAASgAAAAAAAAB6AAAAAYIAAGlyaW50ZXJuZXQiPC
00d5: HpLULmxWDTTXxoqYGBvbsfjWwiYgvzzBfUqEttDulyh9Xhqcm8Zlz6LaoilhQ=
0115: User-Agent: curl/7.15.1 (i586-pc-mingw32msvc) libcurl/7.15.1 Ope
0155: nSSL/0.9.8 zlib/1.2.2
016c: Proxy-Connection: Keep-Alive
018a: Content-type: text/xml
01a2:
<= Recv header, 37 bytes (0x25)
0000: HTTP/1.1 200 Connection established
<= Recv header, 42 bytes (0x2a)
0000: Proxy-agent: BlueCoat-Security-Appliance
<= Recv header, 2 bytes (0x2)
0000:
== Info: Proxy replied OK to CONNECT request
== Info: SSL: couldn't set callback!
== Info: Closing connection #0

-----Original Message-----
From: curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se] On Behalf Of Daniel Stenberg
Sent: 06 March 2006 14:44
To: the curl tool
Subject: RE: FW: Post XML Document through Microsoft ISA Server

On Mon, 6 Mar 2006, Richard Thorp wrote:

> c:\curl\curl -D - -X POST -H "Content-type: text/xml" -d
> @c:\curl\testfile.xml -u name:password -x proxy:port --proxy-ntlm
> https://secure.dev.gateway.gov.uk/submission -k >
c:\curl\response4.txt
>
> I can't post through to the URL with a normal browser as I can only
GET the
> page (it has no page which allows me to post).
>
> I've also tried replacing -X POST with -v but no joy.

-X POST is pointless as -d implies POST.

-u is for server authentication, and you need proxy authentication done
with
-U for that NTLM over proxy.

For a really good "trace", I recommend using "--trace-ascii dumpfile"
instead
of -D.

-- 
  Commercial curl and libcurl Technical Support:
http://haxx.se/curl.html
This email and any files transmitted with it are confidential 
and intended solely for the use of the individual or entity to 
whom they are addressed. Any unauthorised distribution or 
copying is strictly prohibited. Whilst CedarOpenAccounts 
takes steps to prevent the transmission of viruses via e-mail, 
we cannot guarantee that any email or attachment is free from 
computer viruses and you are strongly advised to undertake your 
own anti-virus precautions. CedarOpenAccounts grants no 
warranties regarding performance, use or quality of any e-mail 
or attachment and undertakes no liability for loss or damage, 
howsoever caused.  
CedarOpenAccounts is a trading name of Cedar Software Ltd and
OpenAccounts Ltd.
For more information on CedarOpenAccounts and our products, 
please visit our web site at http://www.cedaropenaccounts.com
Received on 2006-03-06