Results 1 to 9 of 9
  1. #1
    omsh12 is offline Member
    Join Date
    Jun 2012
    Posts
    6
    Rep Power
    0

    Default loggin into a website through a program

    So i have been playing this browser game and i tried to make a program that will notify me on certain occasions
    Basicly I know how to do that i can download the html code of the website to a string and search for information, however my program doesn't have access to the html code of my specific account because it need to login first insted it just downloads the "you need to login" page html code. my question is how do i log in through the program so it will have access to the game.

    I am not sure if it is legal to post the name of the game so for now I will not even though I'm sure it's relevent, if anyone knows how it can be done please PM and I'll send you the name of the game in a PM

    Tnx in advance!

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default Re: loggin into a website through a program

    You didn't bother to reply to the response in your earlier thread. Why should we expect any better behavior this time round?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    omsh12 is offline Member
    Join Date
    Jun 2012
    Posts
    6
    Rep Power
    0

    Default Re: loggin into a website through a program

    Well i guess that was rude of me and will not happen again, the advice I was given did proof helpfull thou

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,332
    Rep Power
    25

    Default Re: loggin into a website through a program

    You should study HTML and HTTP to see how a browser sends a filled in html form when the user presses the Submit button. In some cases you can write a program that sends to the server what the browser would send.
    If you don't understand my response, don't ignore it, ask a question.

  5. #5
    omsh12 is offline Member
    Join Date
    Jun 2012
    Posts
    6
    Rep Power
    0

    Default Re: loggin into a website through a program

    I know basic HTML, and I found in the source code the code that makes the texfields of username and password and the code that makes the submit button but I dont know how to "fill in the texts and press the button" through my program

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,332
    Rep Power
    25

    Default Re: loggin into a website through a program

    know how to "fill in the texts and press the button" through my program
    The browser sends an HTTP request to the server when the user presses the Submit button.
    You need to study how HTTP requests are created, formatted and sent. A java program can send most(maybe all) of the same contents of an HTTP request as is sent by a browser.
    If you don't understand my response, don't ignore it, ask a question.

  7. #7
    omsh12 is offline Member
    Join Date
    Jun 2012
    Posts
    6
    Rep Power
    0

    Default Re: loggin into a website through a program

    OK, thank you! I googled it and found some guides and examples about sending HTTP requests through java but if you have any guide yourself it would be great

  8. #8
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,332
    Rep Power
    25

    Default Re: loggin into a website through a program

    The Apache group has some packages that will help.
    If you don't understand my response, don't ignore it, ask a question.

  9. #9
    omsh12 is offline Member
    Join Date
    Jun 2012
    Posts
    6
    Rep Power
    0

    Default Re: loggin into a website through a program

    Aight, tnx I'll try that

Similar Threads

  1. hi i am new to this website
    By educationforums in forum Introductions
    Replies: 3
    Last Post: 07-21-2011, 09:14 PM
  2. Replies: 4
    Last Post: 07-02-2011, 03:28 AM
  3. website
    By rithish in forum Java Servlet
    Replies: 0
    Last Post: 04-24-2011, 09:13 PM
  4. What do I need to use this website?
    By ZachVK in forum Java Applets
    Replies: 27
    Last Post: 06-24-2010, 08:15 PM
  5. How to download website (Get all link in website)
    By finalmem in forum Advanced Java
    Replies: 0
    Last Post: 11-12-2008, 08:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •