Page 1 of 1

simulating a submit button

Posted: Tue Oct 16, 2012 3:50 pm
by shile
i want to make a script that will simulate submit button function if a certain condition is satisfied,i researched a bit and i found that i need to do it with php's curl functions...i sniffed what submit button does and what fields it produces,here is a picture of the sniffed submit button...can you help me make a curl script?

Image

Re: simulating a submit button

Posted: Tue Oct 16, 2012 4:42 pm
by requinix
That last field, with the random letters and numbers, makes things a little harder. What site is this? Surely there's an easier way.

Re: simulating a submit button

Posted: Wed Oct 17, 2012 5:58 am
by shile
is the last field a cookie?This is a site that i am making,its a calendar that allows you to make appointments...

Re: simulating a submit button

Posted: Wed Oct 17, 2012 12:55 pm
by requinix
It's your own site? Then why do you have to scrape it? Some code generates that form so look at the code and copy the parts of it that do what you want...