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

curl-and-php

Re: How do I post variables when the post variables change.

From: shawn a <boris317_at_gmail.com>
Date: Wed, 15 Apr 2009 15:58:00 -0400

i believe the x,y cgi args get generated automatically if the forms
submit button is of type=image.
i would think you would be able to just hard code the x,y and be fine.

the actual X,Y args are coords of where the user clicked on the image.

On Tue, Apr 14, 2009 at 8:25 PM, Chad Best <chadbst+haxx_at_gmail.com> wrote:
> Hello,
>
> I am trying to create a webbot that will automatically place a
> pre-order on Half.com(equivalent to going to a Half.com product page
> and clicking on "Match My Price").  I have been able to successfully
> go through all the necessary steps to creating a pre-order by having
> curl post the necessary variables, except the next to last page.
>
> The next to last page posts 8 variables, 2 of which change.  I can
> tell that they change, because I have a script that analyzes a form to
> see what variables are received.  The post variables that change are
> called "x" and "y".  I thought that maybe there was javascript
> involved that was changing those variables.  However, I removed the
> javascript portion of the code in the html source and sent it to my
> form analyzer and those variables still change!  If I do not send
> those variables, I will not be directed to the correct page.
>
> I have setup two files on my domain to illustrate what I mean.  If you
> go to http://www.bestdiscountmedia.comhalfauthentication6.html and
> click on "place my pre-order", you will see what I mean.
>
> I am fairly new at this, so any help is greatly appreciated.
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2009-04-15