Script that navigates to / around website

Discussion in 'PHP' started by robokoder, Jun 24, 2008.

  1. #1
    Is it possible to, in principle, have a script which goes to a website and fills in a form- so for example, a script which will go to gmail.com and log in using the user form, and then use a regular expression to find the subject of the first email in my inbox?

    And could this go one further, actually say selecting this email so as to access the body text?

    Any ideas?

    thanks!
     
    robokoder, Jun 24, 2008 IP
  2. furnissg

    furnissg Peon

    Messages:
    61
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In principle yes, security on the other hand maybe an issue.

    theres a good PHP class you can use for automating web site visits and filling in forms. Snoopy PHP Class have a look at it and see if you can do something with it.
     
    furnissg, Jun 24, 2008 IP
  3. robokoder

    robokoder Peon

    Messages:
    146
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the link!

    Hmm- security-wise, if the website has a SSL connection will that be compatible?
     
    robokoder, Jun 24, 2008 IP
  4. furnissg

    furnissg Peon

    Messages:
    61
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Really dont know ive never used it to try access SSL sites, sorry. Best bet is to just have a go and see.
     
    furnissg, Jun 24, 2008 IP
  5. robokoder

    robokoder Peon

    Messages:
    146
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Arghh there's no documentation!

    Has anybody got an example I can take a look at?


    Cheers
     
    robokoder, Jun 24, 2008 IP
  6. furnissg

    furnissg Peon

    Messages:
    61
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    dont have mine on me but found this one shows the basics of using the class
     
    furnissg, Jun 24, 2008 IP