cURL / Mailing Lists / curl-users / Single Mail

curl-users

can't get URL with curl

From: Ilann Cohen <ilann_at_ilann.net>
Date: Mon, 6 Dec 2004 23:30:05 +0100

Hi,

I’m running curl/libcurl v 7.11.1 with cygwin on a Windows i686 system.

For a reason I can’t understand, curl and libcurl are unable to fetch
the following URL, whereas Internet Explorer is able to display it.

This is the command I did:
curl
"http://www.explorimmo.com/ListeAnnonce.shtml?ROWS=10&CODE_TRI=PRIX_ASC&
UNIVERS=null&Recherche.decoupe=2&Recherche.typeTransaction=VENTE&Recherc
he.typeBien=_APPARTEMENT;&Recherche.Anciennete=NULL&Recherche.nbPieces.m
in=1&Recherche.nbPieces.max=3&Recherche.surface.min=10&Recherche.surface
.max=30&Recherche.prix.min=10000&Recherche.prix.max=150000&Recherche.meu
ble=NULL&Recherche.localisation=75011&Recherche.pays=FRA&paramPub=1&LIST
E_PAGE=2"

Note: This is the second page of a web form.

Does anybody know what's going on ???

Thanks in advance,
Ilann

Here is the ASCII trace obtained with –trace-ascii option :

== Info: About to connect() to www.explorimmo.com port 80
== Info: Connected to explorimmo.com (194.117.210.30) port 80
=> Send header, 571 bytes (0x23b)
0000: GET /ListeAnnonce.shtml?ROWS=10&CODE_TRI=PRIX_ASC&UNIVERS=null&R
0040: echerche.decoupe=2&Recherche.typeTransaction=VENTE&Recherche.typ
0080: eBien=_APPARTEMENT;&Recherche.Anciennete=NULL&Recherche.nbPieces
00c0: .min=1&Recherche.nbPieces.max=3&Recherche.surface.min=10&Recherc
0100: he.surface.max=30&Recherche.prix.min=10000&Recherche.prix.max=15
0140: 0000&Recherche.meuble=NULL&Recherche.localisation=75011&Recherch
0180: e.pays=FRA&paramPub=1&LISTE_PAGE=2 HTTP/1.1
01ad: User-Agent: curl/7.11.1 (i686-pc-cygwin) libcurl/7.11.1 OpenSSL/
01ed: 0.9.7d zlib/1.2.2
0200: Host: www.explorimmo.com
021a: Pragma: no-cache
022c: Accept: */*
0239:
<= Recv header, 20 bytes (0x14)
0000: HTTP/1.1 302 Found
<= Recv header, 37 bytes (0x25)
0000: Date: Mon, 06 Dec 2004 22:28:27 GMT
<= Recv header, 117 bytes (0x75)
0000: Server: Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2 mod_ssl/
0040: 2.8.9 OpenSSL/0.9.6g ApacheJServ/1.1.2 mod_jk/1.1.0
<= Recv header, 28 bytes (0x1c)
0000: Cache-Control: pre-check=0
<= Recv header, 40 bytes (0x28)
0000: Expires: Wed, 31 Dec 1969 23:59:59 GMT
<= Recv header, 18 bytes (0x12)
0000: Pragma: no-cache
<= Recv header, 52 bytes (0x34)
0000: Set-Cookie: JServSessionIdcadri=fupk00tvp1; path=/
<= Recv header, 104 bytes (0x68)
0000: Set-Cookie: www.explorimmo.com=9945ce:100a6aa837a:-74f3; expires
0040: =Tue, 06-Dec-2005 22:28:27 GMT; path=/
<= Recv header, 23 bytes (0x17)
0000: Location: /home.shtml
<= Recv header, 28 bytes (0x1c)
0000: Transfer-Encoding: chunked
<= Recv header, 45 bytes (0x2d)
0000: Content-Type: text/html; charset=iso-8859-1
<= Recv header, 67 bytes (0x43)
0000: Via: 1.1 tx (Redline Networks Web I/O Accelerator - T|X 3.1.12 0
0040: )
<= Recv header, 47 bytes (0x2f)
0000: Set-Cookie: rl-sticky-key=c275d21850; path=/;
<= Recv data, 278 bytes (0x116)
0000: 10A
0005: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">.<HTML><HEAD>.
0045: <TITLE>302 Found</TITLE>.</HEAD><BODY>.<H1>Found</H1>.The docume
0085: nt has moved here.<P>.<HR>.<ADDRESS>Ap
00c5: ache/1.3.26 Server at www.explorimmo.com Port 80</ADDRESS>.</BOD
0105: Y></HTML>.
0111: 0
0114:
== Info: Connection #0 left intact
Received on 2004-12-06