cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Use cURL with proxy-firewall Cisco ASA

From: MARMOLLE Frank <Frank.Marmolle_at_mail.ap-hm.fr>
Date: Tue, 22 Aug 2006 12:21:11 +0200

-----Message d'origine-----
De : curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se]De la part de Daniel Stenberg
Envoyé : mardi 22 août 2006 11:53
À : the curl tool
Objet : RE: Use cURL with proxy-firewall Cisco ASA

On Tue, 22 Aug 2006, MARMOLLE Frank wrote:

> HTTP reply :
> <html><head><title>Moved</title></head><body><a
> href="/webvpn.html">Moved</a></body></html>

> This reply doesn't seem to be interpreted by cURL, does it ?

No, but that's probably because you didn't tell it to do that. See
-L/--location in the man page. I find it likely that the HTTP response headers
(that you didn't show) included a redirect.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
=================================================================================
Effectively, the -L/--location option is not specified, and we will try it. Thanks.
The use of cURL was like as followed :
HTTPsend: User authentication required. Login as "e005423".
HTTPsend: Uploading file(s) to https://xxxxxx/xxxxx.jsp. (total 31 bytes).
Executing curl with arguments :
0001="https://xxxxxx/xxxxx.jsp"
0002=-m 600
0003=-s
0004=-S
0005=-i
0006=-o "/export/home/intchu/tmp/TMPAAAzLayXZ.out"
0007=--data-binary "@/export/home/intchu/tmp/TMPAAAzLayXZ.in"
0008=-u 'e005423:{tsi:42dafc06}epWBD/j8Qq1/5sdqC2K3'
-H "Content-Disposition:attachment; filename=13_AP-HM_200601011200000000010V001T.flx"
-H "Content-Transfer-Encoding:8bit"
-H "Content-Type:TEXT"
Curl command:
curl "https://xxxxxx/xxxxx.jsp" -m 600 -s -S -i -o "/export/home/intchu/tmp/TMPAAAzLayXZ.out" --data-binary "@/export/home/intchu/tmp/TMPAAAzLayXZ.in" -u 'e005423:{tsi:42dafc06}epWBD/j8Qq1/5sdqC2K3' -K "/export/home/intchu/tmp/TMPAAAzLayXZ.curl"
HTTPsend: 301 Moved Permanently
HTTP reply :
<html><head><title>Moved</title></head><body>Moved</body></html>
HTTPsend: 301
Received on 2006-08-22