Automate form completion

JBJB Carlsbad, CA
edited August 2004 in Internet & Media
hey guys, im designing a program that needs to log into and search a site by itself. I am then parsing the HTML pulling out some prices and quantites. I have the HTML parsing working in Java, but I dont know how to get it to log into the sites. Im looking at trying with PHP right now, but i cant seem to find much help on google. anyone have a link to point me in the right direction(with PHP or Java)?

Comments

  • a2jfreaka2jfreak Houston, TX Member
    edited August 2004
    If the website will allow you to login via cookies, then send a cookie along with the request.

    If you want to see how it's done, then copy the source from the web-site to your system and open the HTML file with the action set to localhost/scriptname, then monitor port 80 and see exactly how the information is sent. Then just mimmick that using Java or whatever language you want to use to make the connection with.
  • JBJB Carlsbad, CA
    edited August 2004
    thanks a2jfreak, Ill give that a try!
Sign In or Register to comment.