S4C Posted August 23, 2006 Share Posted August 23, 2006 :-[ 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 blablablaThen 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. Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted August 23, 2006 Share Posted August 23, 2006 Sockets tutorial:http://www.phpfreaks.com/tutorials/50/0.php Quote Link to comment Share on other sites More sharing options...
S4C Posted August 23, 2006 Author Share Posted August 23, 2006 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 ? Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted August 23, 2006 Share Posted August 23, 2006 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 Quote Link to comment Share on other sites More sharing options...
S4C Posted August 23, 2006 Author Share Posted August 23, 2006 :-\ thank you! I forgot to look at the manual :| Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.