Crawl web - submit form

Discussion in 'PHP' started by corlas, Apr 4, 2008.

  1. #1
    Do you think it's possible to write a php application that crawl web pages (based on a certain criteria) and submit forms?

    Thanks/Regards
     
    corlas, Apr 4, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Hello,

    Everything is possible. If you view the code of PHProxy, it may guide you as to how it rewrite FORM tags (if that's what you need).

    You could parse a <FORM>, for each <INPUT>, <SELECT>, etc, and POST the data using fsockopen or cURL.

    Jay
     
    jayshah, Apr 5, 2008 IP
  3. jitendraag

    jitendraag Notable Member

    Messages:
    3,982
    Likes Received:
    324
    Best Answers:
    1
    Trophy Points:
    270
    #3
    cURL is your friend :) You can crawl websites, fill form, manage sessions with cookies.
     
    jitendraag, Apr 5, 2008 IP