cURL / Mailing Lists / curl-users / Single Mail

curl-users

Pls Help Me :(

From: <alsarkis_at_bil.com.mx>
Date: Thu, 22 Jul 2004 22:06:04 -0400

Hi:

I use the cur program to try to get information from a web page that use a
form.
the coomand that i use to get the information is:

curl -o page.htm -d "Organismo=135&Fecha=19/07/2004"
http://www.scjn.gob.mx/Listas/Acuerdo/ListaConsultasFinal.asp

whe I tun this command i can not get the information, I put the -v option
to try to know
what append, and I get this:

----------------------------------------------------------------------------

----
* About to connect() to www.scjn.gob.mx port 80
* Connected to www.scjn.gob.mx (200.38.86.253) port 80
> POST /Listas/Acuerdo/ListaConsultasFinal.asp HTTP/1.1
User-Agent: curl/7.12.0 (i386-pc-win32) libcurl/7.12.0 zlib/1.2.1
Host: www.scjn.gob.mx
Pragma: no-cache
Accept: */*
Content-Length: 30
Content-Type: application/x-www-form-urlencoded
Organismo=135&Fecha=19/07/2004  % Total    % Received % Xferd  Average
Speed   T
ime    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left 
Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:21 --:--:--   
0<
HTTP/1.1 302 Object moved
< Transfer-Encoding: chunked
< ~~~~~~~~~~~~~~: ~~~
< Date: Thu, 22 Jul 2004 20:03:35 GMT
< Location: /listas/acuerdo/default.asp
< Content-Type: text/html
< Server: Microsoft-IIS/5.0
< MicrosoftOfficeWebServer: 5.0_Pub
< X-Powered-By: ASP.NET
< PICS-Label: (PICS-1.0 "http://www.rsac.org/ratingsv01.html" l by
"administrato
r_at_mail.scjn.gob.mx" on "2003.04.08T01:35-0500" exp "2004.04.08T12:00-0500"
r (v
0 s 0 n 0 l 0))
< Set-Cookie: VisitorID=28879524; expires=Thu, 22-Jul-2004 05:00:00 GMT;
domain=
www.scjn.gob.mx; path=/
< Set-Cookie: ASPSESSIONIDACCTBBBD=KHPJEGPBFDPHEOBBHIKMILJD; path=/
< Cache-control: private
100   121    0   121    0     0      5      0 --:--:--  0:00:21 --:--:--   
26
* Connection #0 to host www.scjn.gob.mx left intact
* Closing connection #0
----------------------------------------------------------------------------
------
I have the for page and is working can you. This is the html form code:
========================================================================
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Consulta Listas de Acuerdos Por Organismo</title>
<base target="main">
<script language="JavaScript">
<!--
function SymError()
{
  return true;
}
window.onerror = SymError;
var SymRealWinOpen = window.open;
function SymWinOpen(url, name, attributes)
{
  return (new Object());
}
window.open = SymWinOpen;
//-->
</script>
<script LANGUAGE="JavaScript" src="Valida.js"></script>
<meta name="Microsoft Border" content="none">
</head>
<body topmargin="0" leftmargin="5"><h1 align="center">TEST</h1>
<hr>
<p>&nbsp;</p>
<form name="Editar"
action="http://www.scjn.gob.mx/Listas/Acuerdo/ListaConsultasFinal.asp"
method="POST">
<table border="1" width="100%">
  <tr>
    <th colspan="2" bgcolor="#000000"><font color="#FFFFFF">Indique los
datos solicitados:</font></th>
  </tr>
  <tr>
    <th bgcolor="#000000"><font color="#FFFFFF">Seleccione el
Organismo:</font></th>
    <td>
      <select size="1" name="Organismo" tabindex="1">
	  <option value=137>Tercer Tribunal Unitario del Tercer Circuito</option>
      </select>
    </td>
  </tr>
  <tr>
    <th bgcolor="#000000"><font color="#FFFFFF">Indique la fecha
(dd/mm/aaaa):</font></th>
    <td>
      <input type="text" name="Fecha" size="15" tabindex="2"
value="19/07/2004" maxlength="10" onblur="JavaScript:return
ValidaFecha(window.Editar.Fecha);">
    </td>
  </tr>
  <tr>
    <th colspan="2" bgcolor="#000000">
      <input type="submit" value="Buscar" name="Buscar" tabindex="3"> 
      <input type="button" value="Cancelar" name="Cancelar" tabindex="4"
onclick="JavaScript:window.navigate('Default.asp');">
    </th>
  </tr>
</table>
</form>
<p>&nbsp;</p>
<hr>
</body>
<script language="JavaScript">
<!--
window.open = SymRealWinOpen;
//-->
</script>
</html>
============================================================================
Can you help me to get the correct wey to get this work !!! Pls !!! :)
Thank You
Alberto S
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
Received on 2004-07-23