cURL / Mailing Lists / curl-users / Single Mail

curl-users

Canīt load site with post

From: Buro de Investigaciones Legales <bil_at_bil.com.mx>
Date: Thu, 29 Nov 2001 08:20:34 -0600

Hi:

I have very strange trouble to try to download information with curl, because I tried to use the -L option to download the main page http://www.scjn.gob.mx and it is work, but when I try to use the post option the curl try to make the job, but always download the main page. (deafult.asp)

I thing that is someting about I need to pass some parameters or something, because when I do the thing in the page, (using the form in http://www.scjn.gob.mx with IE ) its work, but when I use the curl does not work
 

I use this:
curl -L -d "Organismo=43&Buscar=Buscar&Fecha=22/11/2001" http://www.scjn.gob.mx/Consultas/Listas/Sesion/ListaConsultasFinal.asp
and always download the same page defaul.asp !!!!

I run the same command with the option -i and -v and show me this:
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
HTTP/1.1 100 Continue
Server: Microsoft-IIS/4.0
Date: Thu, 29 Nov 2001 13:38:35 GMT
PICS-Label: (PICS-1.0 "http://www.rsac.org/ratingsv01.html" l by "administrator@mail.scjn.gob.mx" on "1998.03.22T19:00-0600" exp "1999.03.22T12:00-0600" r (v 0 s 0 n 0 l 0))
PICS-Label: (PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true for "http://www.scjn.gob.mx/" r (cb 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.scjn.gob.mx/" r (n 0 s 0 v 0 l 0))

HTTP/1.1 302 Object moved
Server: Microsoft-IIS/4.0
Date: Thu, 29 Nov 2001 13:38:35 GMT
PICS-Label: (PICS-1.0 "http://www.rsac.org/ratingsv01.html" l by "administrator@mail.scjn.gob.mx" on "1998.03.22T19:00-0600" exp "1999.03.22T12:00-0600" r (v 0 s 0 n 0 l 0))
PICS-Label: (PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true for "http://www.scjn.gob.mx/" r (cb 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.scjn.gob.mx/" r (n 0 s 0 v 0 l 0))
Location: /default.asp
Content-Type: text/html
Set-Cookie: VisitorID=3017112; expires=Thu, 29-Nov-2001 06:00:00 GMT; domain=www.scjn.gob.mx; path=/
Set-Cookie: ASPSESSIONIDQGQGGQKS=MMADANPCMMLJKGJNBNLPPMOI; path=/
Cache-control: private
Transfer-Encoding: chunked

HTTP/1.1 200 OK
Server: Microsoft-IIS/4.0
Date: Thu, 29 Nov 2001 13:38:36 GMT
PICS-Label: (PICS-1.0 "http://www.rsac.org/ratingsv01.html" l by "administrator@mail.scjn.gob.mx" on "1998.03.22T19:00-0600" exp "1999.03.22T12:00-0600" r (v 0 s 0 n 0 l 0))
PICS-Label: (PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true for "http://www.scjn.gob.mx/" r (cb 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.scjn.gob.mx/" r (n 0 s 0 v 0 l 0))
Content-Type: text/html
Cache-control: private
Transfer-Encoding: chunked

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<META http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true for "http://www.scjn.gob.mx/" r (cb 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true for "http://www.scjn.gob.mx/" r (n 0 s 0 v 0 l 0))'>
<meta http-equiv="PICS-Label" content='(PICS-1.1 "&lt;http://www.rsac.org/ratingsv01.html&gt;" l gen true comment "RSACi North America Server" by "rfernandez@mail.scjn.gob.mx &lt;mailto:rfernandez@mail.scjn.gob.mx&gt;" for "&lt;http://www.scjn.gob.mx/&gt;" on "1998.02.20T16:45-0800" r (n 0 s 0 v 0 l 0))'>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<title>Pagina de Bienvenida</title>
</head>
<body bgcolor="#FFFFFF" link="#FF0000" topmargin="0" leftmargin="0">
<script language="JavaScript">
<!--
function Delay()
{
 MyID = setTimeout("Continua()", 10000);
}
function Continua(Cual)
{
 window.location.href="inicial.asp";
}
// -->
</script>
<script language="JavaScript" for="window"
event="onLoad()">
<!--
 Delay()
// -->
</script>

<p align="center"><a href="inicial.asp"><img src="images/Edificio_SCJN.jpg"
alt="Servidor Web de la Suprema Corte de Justicia de la Nación" align="middle" border="0"
width="448" height="336"><br>
</a><font size="4"><strong>Es usted el visitante 3,017,112 desde el 27-Oct-96</strong></font> </p>
</body>
</html>

----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
Any idea ???
Can you help me ?
 :|

Thank you very mouch...
Received on 2001-11-29