Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 7 of 7

Thread: login to website as user, no browser

  1. #1
    Member
    Join Date
    May 2010
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default login to website as user, no browser

    there's probably no way to do this, but i was wondering if java could login as a user to a website without opening a browser


  2. #2
    Member
    Join Date
    Apr 2010
    Location
    The Hague, Netherlands
    Posts
    91
    Thanks
    3
    Thanked 10 Times in 10 Posts

    Default Re: login to website as user, no browser

    We have a program UltraCMS wich logs in into our website backend but its more a program that access the db and data the website uses.

    A website uses servlets, but if there is no browser, just make a program that has access to the data.

  3. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: login to website as user, no browser

    Yes, you can write a program to do what a browser does without user intervention.
    What would you do after the login?

  4. #4
    Member Darryl.Burke's Avatar
    Join Date
    Mar 2010
    Location
    Madgaon, Goa, India
    Posts
    494
    Thanks
    8
    Thanked 48 Times in 46 Posts

    Default Re: login to website as user, no browser


  5. #5
    Member
    Join Date
    May 2010
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: login to website as user, no browser

    download the pages and parse them with regular expressions, but i cant get to those pages without logging in, ill just be redirected to the login screen

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: login to website as user, no browser

    Often after login, the server returns a cookie. You need to return that cookie with further requests after the login.

  7. #7
    Member
    Join Date
    May 2010
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: login to website as user, no browser

    LOL
    thank your Norm, i just came back to the forum to ask a question about the cookie because that's where i got stuck
    tyvm

Similar Threads

  1. How to get data from a third party website
    By Duff in forum Java Theory & Questions
    Replies: 2
    Last Post: February 6th, 2010, 04:24 PM
  2. Best way to automatically login user from a customer's web site.
    By ess_stegra in forum JavaServer Pages: JSP & JSTL
    Replies: 2
    Last Post: February 2nd, 2010, 12:16 PM
  3. Replies: 1
    Last Post: July 28th, 2009, 02:15 AM
  4. Website Source
    By expertOpinion in forum Java Theory & Questions
    Replies: 10
    Last Post: July 21st, 2009, 11:06 AM
  5. Replies: 3
    Last Post: March 9th, 2009, 09:47 AM