cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

re:re:need a bit of help to fill this form

From: Regis Maltais <regismalt_at_hotmail.com>
Date: Wed, 11 Feb 2004 13:28:49 -0500

please see at the bottom of this email:

"re:need a bit of help to fill this form"
From: Regis Maltais (regismalt_at_hotmail.com)
Date: 2004-02-11

Previous message: Daniel Stenberg: "Re: need a bit of help to fill this
form"
Maybe in reply to: Regis Maltais: "need a bit of help to fill this form"
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment
]

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

"Re: need a bit of help to fill this form"
From: Daniel Stenberg (daniel-curl_at_haxx.se)
Date: 2004-02-11

Previous message: Will Wade: "Re: non-blocking curl / multi curl??"
In reply to: Regis Maltais: "need a bit of help to fill this form"
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment
]

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

On Wed, 11 Feb 2004, Regis Maltais wrote:

>I cannot fill this form with cURL and PHP:
>http://www.sheltercare.com/french/gift/form.asp?cuid=
>
>The form does not contain the info that I have provided through cURL.

I suggest you install LiveHTTPHeaders, fill in the form with your browser
and
then make sure your curl code fills in the same data your browser did!

        http://livehttpheaders.mozdev.org/

--
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
Hi,
thanks for the answer...
So if I'm right I use the livehttpheaders tools to gather the information
about each field and then I can use this info along with cURL to fill this
Form.
thanks
Regis
---------------------------------------------------------------------------------------------------------------------------
Hi,
here is the result of the livehttpheaders utility:
now why I naeed to do with PHP and cURL to fill this form?
thanks
Regis
http://www.sheltercare.com/french/gift/form.asp
POST http://www.sheltercare.com/french/gift/form.asp HTTP/1.1
Host: www.sheltercare.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) 
Gecko/20040113
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer: http://www.sheltercare.com/french/gift/form.asp
Cookie: ASPSESSIONIDAABBSDTC=LPOJMACBPBKJFFLLAPDAPNPL
Content-Type: application/x-www-form-urlencoded
Content-Length: 1110
SubmitForm=Yes&UserName=&shelterid=&activation_day=11&activation_month=2&activation_year=2004&first_name=Arthur&last_name=Tremblay&live_in=h&address=2348%2C+rue+Laurier&apt=1&city=Montreal&postal_code=H8T+2E3&state=QC&home_phone=5146465466&business_phone=5144864646&fax=5145343543&email=t%40t.com&pet_name=CoCo&birth_day=1&birth_month=1&birth_year=2004&species=Cat&breed=378%7CDomestique+poil+long&sex=M&spayed=-1&color_markings=Blanc+et+Noir&vaccination_month=02&vaccination_year=2004&adoption_day=8&adoption_month=02&adoption_year=2004&shelter_location=QC%7CQu%E9bec&shelter_name=SPCA+Canadienne+%28Montr%E9al+et+Laval%29&adopt_value=3&clinic_currently_attends=Clinique+Vet&other_pets=-1&number_of_other_dogs=1&number_of_other_cats=3&aware_of_pet_insurance=0&previous_insurance=0&previous_insurance_company=the+cie&microchipped=-1&microchip_company=1%7C24PetWatch&microchip_id=111111111111111&emerg
ency_first_name=Roger&emergency_last_name=Tremblay&emergency_home_phone=5148789942&emergency_other_phone=5145465487&i_consent=-1&More_info=&Language=F&I_hereby_agree=-1&snail_mail=-1&image1=+Activer+maintenant+
HTTP/1.x 200 OK
Server: Microsoft-IIS/5.0
Date: Wed, 11 Feb 2004 18:21:38 GMT
X-Powered-By: ASP.NET
Content-Length: 68889
Content-Type: text/html
Cache-Control: private
Proxy-Connection: Close
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*  
http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
Received on 2004-02-11