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

curl-and-php

Re: Sending a Form Name

From: haroon ahmad <haroon_at_fastcreators.com>
Date: Thu, 28 Jun 2007 09:16:41 +0500

You 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.gLivehttpheader 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=myform
>
> into the POSTFIELDS but no luck.
>
> ------------------------------
> Date: Wed, 27 Jun 2007 11:59:14 +0500
> From: haroon_at_fastcreators.com
> To: curl-and-php_at_cool.haxx.se
> Subject: 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://liveearth.msn.com/?source=msntaglineliveearthwlm>
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
>

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