cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: SV: Can some find that out here , with this cookie

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 25 Jun 2001 11:34:55 +0200 (MET DST)

On Thu, 21 Jun 2001, Rene R. Nielsen wrote:

> <form action=default.asp method=post id=form1 name=form1>

[cut off and saved in file 'moo']

% perl formfind.pl < moo
--- FORM report. Uses POST to URL "default.asp"
Select: jobtype
Select: region
Input: FindFirma (TEXT)
Input: search (TEXT)
Input: findjob (IMAGE)
Input: nulstil=nulstil (IMAGE)
--- end of FORM

> 1. curl --dump-header header --max-time 120 --user-agent "Opera/5.0 (Windows
> NT 4.0;US)" -L
> "http://job.ofir.dk/default.asp?jobtype=0&region=1&FindFirma=&search="

Wrong, this doesn't POST.

> 2. curl -o 11.html -b header --max-time 120 --user-agent "Opera/5.0 (Windows
> NT 4.0;US)" -L
> "http://job.ofir.dk/default.asp?jobtype=0&region=1&FindFirma=&search="

Neither does this.

> 1. curl --dump-header header -d
> "jobtype=0&region=1&FindFirma=&search=" --max-time 120 --user-agent
> "Opera/5.0 (Windows NT 4.0;US)" -L "http://job.ofir.dk/default.asp"

This POSTs as it should, but only fills in four of the values.

> 2. curl -o 11.html -b header -d
> "jobtype=0&region=1&FindFirma=&search=" --max-time 120 --user-agent
> "Opera/5.0 (Windows NT 4.0;US)" -L "http://job.ofir.dk/default.asp"

There's a difference between these?

> i also have try alot more, but i do not get a out put like, as i get it
> in Opera, i also have tried do replace default.asp to job1.asp, as it is
> in this out

The ACTION line in the form tag says 'default.asp' and thus you should use
that. As the 'formfind.pl' script says above, you should fill in *five*
values (of which the picture one normally generates two (coordinates), if I'm
not mistaking here). Similar to this:

 curl -d jobtype=925 -d region=23 -d FindFirma=moo -d search=text -d \
findjob.x=2 -d findjob.y=2 http://job.ofir.dk/default.asp

Yes, you might need -A, -L and/or -b as well. Just keep on testing.

-- 
     Daniel Stenberg -- curl dude -- http://curl.haxx.se/
Received on 2001-06-25