cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

From: Rene R. Nielsen <rrn_at_rrn.mine.nu>
Date: Thu, 21 Jun 2001 15:44:51 +0200

Thank you for helping me

The form look like this :

--------------------start---------------

<form action=default.asp method=post id=form1 name=form1>
<SELECT NAME=jobtype>
<OPTION VALUE=0 SELECTED>Alle jobtyper</OPTION>
<OPTION VALUE=895>Andre erhverv</OPTION>
<OPTION VALUE=900>Born & Unge</OPTION>
<OPTION VALUE=905>Butik & Forretning</OPTION>
<OPTION VALUE=910>Edb & Internet</OPTION>
<OPTION VALUE=915>Elev</OPTION>
<OPTION VALUE=920>Hotel & Restaurant</OPTION>
<OPTION VALUE=925>Industri & Handvark</OPTION>
<OPTION VALUE=930>Ingenior & Tekniker</OPTION>
<OPTION VALUE=935>Konsulent & Radgivning</OPTION>
<OPTION VALUE=940>Kontor & Regnskab</OPTION>
<OPTION VALUE=945>Kultur</OPTION>
<OPTION VALUE=950>Lager & Transport</OPTION>
<OPTION VALUE=960>Ledelse</OPTION>
<OPTION VALUE=965>Marketing & Reklame</OPTION>
<OPTION VALUE=970>Media & Information</OPTION>
<OPTION VALUE=975>Off. Forvaltning</OPTION>
<OPTION VALUE=980>Salg</OPTION>
<OPTION VALUE=985>Service & Rengoring</OPTION>
<OPTION VALUE=990>Social & Sundhed</OPTION>
<OPTION VALUE=955>Studiejob & Fritidsjob</OPTION>
<OPTION VALUE=995>Undervisning & Forskning</OPTION>
<option>__________________________</option></select>
  <select name=region>
 <option value=1 selected>Hele&nbsp;Danmark</option>
 <option value=23>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hele&nbsp;Fyn</option>
 <option
value=10>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fyns&nb
sp;Amt</option>
 <option value=11>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hele&nbsp;Jylland</option>
 <option
value=17>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Arhus&n
bsp;Amt</option>
 <option
value=12>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Nordjyl
lands&nbsp;Amt</option>
 <option
value=13>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ribe&nb
sp;Amt</option>
 <option
value=6>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ringkcbi
ng&nbsp;Amt</option>
 <option
value=14>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Scnderj
yllands&nbsp;Amt</option>
 <option
value=15>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vejle&n
bsp;Amt</option>
 <option
value=16>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Viborg&
nbsp;Amt</option>
 <option value=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hele&nbsp;Sjalland</option>
 <option
value=18>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Bornhol
ms&nbsp;Amt</option>
 <option
value=4>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Frederik
sborg&nbsp;Amt</option>
 <option
value=5>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kcbenhav
ns&nbsp;Amt</option>
 <option
value=7>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Roskilde
&nbsp;Amt</option>
 <option
value=8>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Storstrc
ms&nbsp;Amt</option>
 <option
value=9>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Vestsjal
lands&nbsp;Amt</option>
 <option value=0 style='color=gray;font-weight:bold;'>Sog i Oresundsregion
Sverige:</option>
 <option value=34>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Blekinge&nbsp;lan</option>
 <option value=35>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hallands&nbsp;lan</option>
 <option value=19>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Skane&nbsp;lan</option>
<option>__________________________</option></select>
<input type="text" name="FindFirma" size="28">
<input type="text" name="search" size="28" value="">
<input type="image" name="findjob" src="pics/b2n.gif" width=127 height=27
border=0 alt="find job"><br>
<input type="image" src="pics/nulstil.gif" name ="nulstil" width=127
height=27 value="nulstil" border=0 alt="nulstil">
</form>

--------------------end-----------------

i have tried this to get the data:

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="

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="

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"

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"

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

--------------out put start-------------------------------
<FORM METHOD=post
ACTION="job1.asp?findfirma=&search=&jobtype=0&region=10&pageno=1&nextpage=0"
id=form1 name=form1>
                <tr><td align="center" valign=top colspan=4><font size=1 face=arial>
                Side:<font face=arial><font color=red>1</font></font> <font face=arial><a
href="job1.asp?findfirma=&nextpage=0&search=&jobtype=0&region=10&pageno=2">2
</a></font> <font face=arial><a
href="job1.asp?findfirma=&nextpage=0&search=&jobtype=0&region=10&pageno=3">3
</a></font> <font face=arial><a
href="job1.asp?findfirma=&nextpage=0&search=&jobtype=0&region=10&pageno=4">4
</a></font> </font></td></tr></form><TR><TD bgcolor=#CCCCCC align=left><font
face=arial color=#000000 size=2 ><b><center>Jobbet</font></TD><TD
bgcolor=#CCCCCC align=left><font face=arial color=#000000 size=2
><b><center>Annoncor</font></TD><TD bgcolor=#CCCCCC align=center><font
face=arial color=#000000 size=2
><b><center>Indrykket</font></TD></TR><TR><TD bgcolor=#FFFFCC
align=left><font face=arial color=#000000 size=1 ><a
href='showjob.asp?r=20010621130326156&findfirma=&pageno=1&jobtype=0'>Timelon
nede aflosere</a></font></TD><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 >FREDERICIA KOMMUNE</font></TD><TD bgcolor=#FFFFCC
align=center><font face=arial color=#000000 size=1
>21/6</font></TD></TR><TR><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 ><a
href='showjob.asp?r=20010621124062062&findfirma=&pageno=1&jobtype=0'>2
padagoger til Gades Gard</a></font></TD><TD bgcolor=#FFFFCC align=left><font
face=arial color=#000000 size=1 >FREDERICIA KOMMUNE</font></TD><TD
bgcolor=#FFFFCC align=center><font face=arial color=#000000 size=1
>21/6</font></TD></TR><TR><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 ><a
href='showjob.asp?r=20010621103558287&findfirma=&pageno=1&jobtype=0'>Produkt
ionsplanlagger</a></font></TD><TD bgcolor=#FFFFCC align=left><font
face=arial color=#000000 size=1 >SCHREINER ANDERSEN MANAGEMENT
A/S</font></TD><TD bgcolor=#FFFFCC align=center><font face=arial
color=#000000 size=1 >21/6</font></TD></TR><TR><TD bgcolor=#FFFFCC
align=left><font face=arial color=#000000 size=1 ><a
href='showjob.asp?r=20010621094789154&findfirma=&pageno=1&jobtype=0'>Distrik
tsergoterapeut soges til Omradet Sct.Joseph</a></font></TD><TD
bgcolor=#FFFFCC align=left><font face=arial color=#000000 size=1 >FREDERICIA
KOMMUNE</font></TD><TD bgcolor=#FFFFCC align=center><font face=arial
color=#000000 size=1 >21/6</font></TD></TR><TR><TD bgcolor=#FFFFCC
align=left><font face=arial color=#000000 size=1 ><a
href='showjob.asp?r=20010621093740744&findfirma=&pageno=1&jobtype=0'>Sygeple
jerske soges til Omradet Sct. Joseph</a></font></TD><TD bgcolor=#FFFFCC
align=left><font face=arial color=#000000 size=1 >FREDERICIA
KOMMUNE</font></TD><TD bgcolor=#FFFFCC align=center><font face=arial
color=#000000 size=1 >21/6</font></TD></TR><TR><TD bgcolor=#FFFFCC
align=left><font face=arial color=#000000 size=1 ><a
href='showjob.asp?r=2001062109169205&findfirma=&pageno=1&jobtype=0'>Lon- og
personalemedarbejder</a></font></TD><TD bgcolor=#FFFFCC align=left><font
face=arial color=#000000 size=1 >FREDERICIA KOMMUNE</font></TD><TD
bgcolor=#FFFFCC align=center><font face=arial color=#000000 size=1
>21/6</font></TD></TR><TR><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 ><a
href='showjob.asp?r=20010621042459634&findfirma=&pageno=1&jobtype=0'>Trat af
din chef??</a></font></TD><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 >ARBEJD HJEMMEFRA GRUPPEN</font></TD><TD
bgcolor=#FFFFCC align=center><font face=arial color=#000000 size=1
>21/6</font></TD></TR><TR><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 ><a
href='showjob.asp?r=20010521140596095&findfirma=&pageno=1&jobtype=0'>Salgsel
ev Food, Orbak</a></font></TD><TD bgcolor=#FFFFCC align=left><font
face=arial color=#000000 size=1 >SUPERBRUGSEN</font></TD><TD bgcolor=#FFFFCC
align=center><font face=arial color=#000000 size=1
>21/6</font></TD></TR><TR><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 ><a
href='showjob.asp?r=20010521135924974&findfirma=&pageno=1&jobtype=0'>Salgsel
ev Food, Gelsted</a></font></TD><TD bgcolor=#FFFFCC align=left><font
face=arial color=#000000 size=1 >SUPERBRUGSEN</font></TD><TD bgcolor=#FFFFCC
align=center><font face=arial color=#000000 size=1
>21/6</font></TD></TR><TR><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 ><a
href='showjob.asp?r=20010620160222711&findfirma=&pageno=1&jobtype=0'>Kvarndr
up Skole - Larer</a></font></TD><TD bgcolor=#FFFFCC align=left><font
face=arial color=#000000 size=1 >RYSLINGE KOMMUNE</font></TD><TD
bgcolor=#FFFFCC align=center><font face=arial color=#000000 size=1
>20/6</font></TD></TR><TR><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 ><a
href='showjob.asp?r=20010620123272892&findfirma=&pageno=1&jobtype=0'>Slagter
mester, Langeskov</a></font></TD><TD bgcolor=#FFFFCC align=left><font
face=arial color=#000000 size=1 >SUPERBRUGSEN</font></TD><TD bgcolor=#FFFFCC
align=center><font face=arial color=#000000 size=1
>20/6</font></TD></TR><TR><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 ><a
href='showjob.asp?r=20010620112756225&findfirma=&pageno=1&jobtype=0'>OMRADEL
EDER</a></font></TD><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 >AARUP KOMMUNE</font></TD><TD bgcolor=#FFFFCC
align=center><font face=arial color=#000000 size=1
>20/6</font></TD></TR><TR><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 ><a
href='showjob.asp?r=20010620111377282&findfirma=&pageno=1&jobtype=0'>Ferieaf
losere</a></font></TD><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 >NYBORG KOMMUNE</font></TD><TD bgcolor=#FFFFCC
align=center><font face=arial color=#000000 size=1
>20/6</font></TD></TR><TR><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 ><a
href='showjob.asp?r=20010619205129853&findfirma=&pageno=1&jobtype=0'>Ansvars
bevidst souschef til Fredericia</a></font></TD><TD bgcolor=#FFFFCC
align=left><font face=arial color=#000000 size=1 >FAKTA A/S</font></TD><TD
bgcolor=#FFFFCC align=center><font face=arial color=#000000 size=1
>19/6</font></TD></TR><TR><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 ><a
href='showjob.asp?r=20010619145764094&findfirma=&pageno=1&jobtype=0'>Revisor
er med erfaring - Odense</a></font></TD><TD bgcolor=#FFFFCC align=left><font
face=arial color=#000000 size=1 >ERNST & YOUNG</font></TD><TD
bgcolor=#FFFFCC align=center><font face=arial color=#000000 size=1
>19/6</font></TD></TR><TR><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 ><a
href='showjob.asp?r=2001061914233560&findfirma=&pageno=1&jobtype=0'>Kontoras
sistent</a></font></TD><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 >ARLA FOODS A.M.B.A.</font></TD><TD bgcolor=#FFFFCC
align=center><font face=arial color=#000000 size=1
>19/6</font></TD></TR><TR><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 ><a
href='showjob.asp?r=2001061910455941&findfirma=&pageno=1&jobtype=0'>Driftsch
ef</a></font></TD><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 >SCHREINER ANDERSEN MANAGEMENT A/S</font></TD><TD
bgcolor=#FFFFCC align=center><font face=arial color=#000000 size=1
>19/6</font></TD></TR><TR><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 ><a
href='showjob.asp?r=20010619104075911&findfirma=&pageno=1&jobtype=0'>Kvalite
tskoordinator / P el. M-ingenior</a></font></TD><TD bgcolor=#FFFFCC
align=left><font face=arial color=#000000 size=1 >SCHREINER ANDERSEN
MANAGEMENT A/S</font></TD><TD bgcolor=#FFFFCC align=center><font face=arial
color=#000000 size=1 >19/6</font></TD></TR><TR><TD bgcolor=#FFFFCC
align=left><font face=arial color=#000000 size=1 ><a
href='showjob.asp?r=2001061910366555&findfirma=&pageno=1&jobtype=0'>Markedsc
hef</a></font></TD><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 >SCHREINER ANDERSEN MANAGEMENT A/S</font></TD><TD
bgcolor=#FFFFCC align=center><font face=arial color=#000000 size=1
>19/6</font></TD></TR><TR><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 ><a
href='showjob.asp?r=20010517182482354&findfirma=&pageno=1&jobtype=0'>Salgsel
ev Food, Norre Broby</a></font></TD><TD bgcolor=#FFFFCC align=left><font
face=arial color=#000000 size=1 >DAGLIBRUGSEN</font></TD><TD bgcolor=#FFFFCC
align=center><font face=arial color=#000000 size=1
>18/6</font></TD></TR><TR><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 ><a
href='showjob.asp?r=2001051718205508&findfirma=&pageno=1&jobtype=0'>Salgsele
v Food, Asperup Afd.</a></font></TD><TD bgcolor=#FFFFCC align=left><font
face=arial color=#000000 size=1 >DAGLIBRUGSEN</font></TD><TD bgcolor=#FFFFCC
align=center><font face=arial color=#000000 size=1
>18/6</font></TD></TR><TR><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 ><a
href='showjob.asp?r=20010612161747808&findfirma=&pageno=1&jobtype=0'>Kontant
hjalpsmedarbejder</a></font></TD><TD bgcolor=#FFFFCC align=left><font
face=arial color=#000000 size=1 >ORBAK KOMMUNE</font></TD><TD
bgcolor=#FFFFCC align=center><font face=arial color=#000000 size=1
>17/6</font></TD></TR><TR><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 ><a
href='showjob.asp?r=hp17360400&findfirma=&pageno=1&jobtype=0'>Faglarer -
plastomradet </a></font></TD><TD bgcolor=#FFFFCC align=left><font
face=arial color=#000000 size=1 >AMU SYD RIBE AFDELING</font></TD><TD
bgcolor=#FFFFCC align=center><font face=arial color=#000000 size=1
>16/6</font></TD></TR><TR><TD bgcolor=#FFFFCC align=left><font face=arial
color=#000000 size=1 ><a
href='showjob.asp?r=20010615132894311&findfirma=&pageno=1&jobtype=0'>Social-
& sundheds-/plejehjemsassistent - vikariat</a></font></TD><TD
bgcolor=#FFFFCC align=left><font face=arial color=#000000 size=1 >FREDERICIA
KOMMUNE</font></TD><TD bgcolor=#FFFFCC align=center><font face=arial
color=#000000 size=1 >15/6</font></TD></TR><TR><TD bgcolor=#FFFFCC
align=left><font face=arial color=#000000 size=1 ><a
href='showjob.asp?r=20010615131682234&findfirma=&pageno=1&jobtype=0'>Social
og sundhedshjalper til Elbo Omardet</a></font></TD><TD bgcolor=#FFFFCC
align=left><font face=arial color=#000000 size=1 >FREDERICIA
KOMMUNE</font></TD><TD bgcolor=#FFFFCC align=center><font face=arial
color=#000000 size=1 >15/6</font></TD></TR>
                <FORM METHOD=post
ACTION="job1.asp?findfirma=&search=&jobtype=0&region=10&pageno=1&nextpage=0"
id=form1 name=form1>
                <tr><td align="center" valign=top colspan=4><font size=1 face=arial>
                Side:<font face=arial><font color=red>1</font></font> <font face=arial><a
href="job1.asp?findfirma=&nextpage=0&search=&jobtype=0&region=10&pageno=2">2
</a></font> <font face=arial><a
href="job1.asp?findfirma=&nextpage=0&search=&jobtype=0&region=10&pageno=3">3
</a></font> <font face=arial><a
href="job1.asp?findfirma=&nextpage=0&search=&jobtype=0&region=10&pageno=4">4
</a></font> </font></td></tr></form><tr><td colspan=3><center><a
href="default.asp?stay=true"><img src="pics/nysoegning.gif" border="0"
WIDTH="127" HEIGHT="27"></a><br>&nbsp;</center></td></tr>
</table>

--------------out put end-------------------------------

  Best regards

 Rene R. Nielsen

 E-mail rrn_at_rrn.mine.nu
 Internet http://rrn.mine.nu

> -----Oprindelig meddelelse-----
> Fra: owner-curl_at_contactor.se
> [mailto:owner-curl_at_contactor.se]Pa vegne af
> Daniel Stenberg
> Sendt: 21. juni 2001 14:13
> Til: Curl Mailinglist
> Emne: Re: Can some find that out here , with this cookie
>
>
> On Thu, 21 Jun 2001, Rene R. Nielsen wrote:
>
> > curl -v -i -L -b headers --user-agent "Opera/5.0 (Windows NT 4.0
> > ;US)" -L
> "http://job.ofir.dk/default.asp?jobtype=0&findfirma=&region=1"
>
> If you want curl to follow Locations, don't use _two_ -L
> option flags, as the
> second one will toggle off the option again.
>
> > this do not send back there correct data
>
> What is "correct data" then?
>
> > curl -v -i -L -b -D headers --user-agent "Opera/5.0 (Windows
> > NT 4.0;US)" -L
> "http://job.ofir.dk/job1.asp?jobtype=0&findfirma=&region=1"
>
> Again, this has -L present twice.
>
> > Connected to job.ofir.dk (195.249.237.49)
> > GET /job1.asp?jobtype=0&findfirma=&region=1 HTTP/1.1
> > User-Agent: Opera/5.0 (Windows NT 4.0;US)
> > Host: job.ofir.dk
> > Pragma: no-cache
> > Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
>
> [ response cut off ]
>
> > also this do not work because it tell me that the cookie is
> not correct
> > in the line <a HREF="nocookie.asp">
>
> Yes. It probably expects you to send a cookie, which you didn't.
>
> > i have also tried this
> >
> > curl -v -i -L -b z -D headers -d jobtype=0&findfirma=&region=1"
> > --user-agent "Opera/5.0 (Windows NT 4.0;US)" -L
> > "http://job.ofir.dk/job1.asp
>
> Again, two -L.
>
> It might help if you tried to tell us what you're trying to
> achive. Are you
> "emulating" a filled in form here? In that case, what does
> the HTML <form>
> look like?
>
> How do you check the page with a browser?
>
> --
> Daniel Stenberg -- curl dude -- http://curl.haxx.se/
>
>
Received on 2001-06-21