Jump to content

Archived

This topic is now archived and is closed to further replies.

S4C

Automatic form submition with socket? HOW?

Recommended Posts

:-[ So.
I am trying to creat automatic www.baldonesis.lt shop item discription.
the main idea:
1. My script connects thru socket to www.baldonesis.lt/shop/admin/ and automaticly logins.(im just an administrator, i have no premissions to servers php files : ( )
2.If the session is created my "bot" checks all shop items and fills the describtion form:
exaple:
SHOP ITEM: ID blablabla
Then i check my data file (whatever.txt) analyze it for blablabla and if its there i take its description adn submit it.
then "bot" checks another shop item and try to do the same: ) I dont know if it was clear to understand. The main idea is that i dont know how to automaticly submit forms(login or whatever) thruu socket. Tanks for help.

P.S Sorry for my english.

Share this post


Link to post
Share on other sites
Well, i know how to use sockets: ) but i need to know how to send data: ) how it should be formated? In other words HOW BROWSER SENDS REQUEST TO SUBMIT FORM : )
My imagination  ;D example:
[code]socket_write($socket, "SUBMIT whateverform POST[username]=whatever POST[password]");[/code]

SUBMIT whateverform POST[username]=whatever POST[password] <- how should this look like ?

Share this post


Link to post
Share on other sites
Have you looked in the manual?

Going to the fsockopen page and doing a search for "post" yielded many results that will proabably answer your question.

http://www.php.net/fsockopen

Share this post


Link to post
Share on other sites
:-\ thank  you! I forgot to look at the manual :|

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.