Jump to content


Photo

Automatic form submition with socket? HOW?


  • Please log in to reply
4 replies to this topic

#1 S4C

S4C
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 23 August 2006 - 02:18 PM

:-[ 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.

#2 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 23 August 2006 - 02:20 PM

Sockets tutorial:

http://www.phpfreaks...orials/50/0.php

#3 S4C

S4C
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 23 August 2006 - 02:29 PM

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:
socket_write($socket, "SUBMIT whateverform POST[username]=whatever POST[password]");

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

#4 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 23 August 2006 - 02:37 PM

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

#5 S4C

S4C
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 23 August 2006 - 02:43 PM

:-\ thank  you! I forgot to look at the manual :|




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users