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

curl-and-php

RE: Sending a Form Name

From: J M <frawst1_at_hotmail.com>
Date: Thu, 28 Jun 2007 14:58:27 -0700

Yep this worked. Thanks much!Date: Thu, 28 Jun 2007 09:16:41 +0500From: haroon_at_fastcreators.comTo: curl-and-php_at_cool.haxx.seSubject: Re: Sending a Form NameYou cant guess variable names yourself. You have to do HTTP Sniffing to see what variables are posted to the website for login process and then post the same variables from your cURL session. you might need to store cookies too for the login process. You can use different HTTP sniffing tools
e.g Livehttpheader which is a Firefox Plugin and can be installed within minutes and works awesome.
 
Regards,
Haroon Ahmad
Sr. Web Developer
www.fastcreators.com
On 6/27/07, J M <frawst1_at_hotmail.com> wrote:

Thanks Haroon.What do you think the POSTFIELDS would be? I tried adding:&name=myforminto the POSTFIELDS but no luck.

Date: Wed, 27 Jun 2007 11:59:14 +0500From: haroon_at_fastcreators.comTo:
curl-and-php_at_cool.haxx.seSubject: Sending a Form Name

yes that will work and he must have done http sniffing before writing script but if he has not done yet he must do it to check if there is any variable sent with the form name so that you can include that in your POSTFIELDS.

 
however if the target site uses AJAX to pick any values from the form fields with form name reference and then process login then you might end up with problems unless you can write a javascript / ajax hack for this.

 
Regards,
Haroon Ahmad
Sr. Web Developer
www.fastcreators.com

Live Earth is coming. Learn more about the hottest summer event - only on MSN. Check it out!
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php

_________________________________________________________________
Play free games, earn tickets, get cool prizes! Join Live Search Club. 
http://club.live.com/home.aspx?icid=CLUB_wlmailtextlink

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-06-29