curl-users
RE: HTTPS Post through ISA Server
Date: Thu, 16 Feb 2006 10:06:14 -0000
Hi
Curl 7.15.1
The same command line works perfectly when not using a proxy (and of
course without the -u and -x switches)
The output I get is
HTTP/1.1 400 Bad Request ( The data is invalid. )
Via:1.1 HR-PROXY
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html
Content-Length: 1714
I will look at removing the -X POST and replacing it with a -v. I found
that in a google search and it worked ok!!!!!!
I am going to try the same command on an apache proxy today hopefully.
Thanks for the input though. Most appreciated.
Richard
-----Original Message-----
From: curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se] On Behalf Of Alexander Lazic
Sent: 15 February 2006 21:30
To: curl-users_at_cool.haxx.se
Subject: Re: HTTPS Post through ISA Server
Hi,
On Mit 15.02.2006 17:07, Richard Thorp wrote:
>
>I'm trying to do a https post using curl. It works ok when I'm
>connected directly to the web, but as soon as I put a Microsoft ISA
>proxy in the way, it fails with a http 400 error.
Please can you tell us a little bit more about the $ERROR, oh and
btw. which version of curl are you useing;-)
>This is the command line I'm trying. I have tried the -proxy-ntlm
>switch as well.
>
>"d:\program files\grampian\curl\curl" -D - -X POST -H "Content-type:
>text/xml" -d @"d:\program files\grampian\curl\testfile.xml" -x ip:port
>-u user:pass https://url/submission -k > "d:\program
>files\grampian\curl\response.txt"
As i have readed from manpage:
--- -d/--data <data> (HTTP) Sends the specified data in a POST request to the HTTP server, ... --- Therefore i don't think you need '-X POST' how about to change to '-v' ;-) >Any help would be greatly appreciated. I've had a good search on >t'interweb with no joy. Well i will try ;-) Regards Alex 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.comReceived on 2006-02-16