Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3441340
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:32:28+00:00 2026-05-18T08:32:28+00:00

I am developing a web browser in java . To parse the HTML page

  • 0

I am developing a web browser in java .
To parse the HTML page into a DOM document
then to render it I use an API “cobra” . But
it is not cookie enabled . So I have to manage it
by myself. I create a class that can collect cookie
from web-page . That is not my problem. But the
problem is that when I click in log-in button
of a website that need cookie to log-in like
facebook (because log-in button is a java-script
button so my browser has to implement the
java-script function .But that API can also handle
java-script function) as an event of button clicking
the API internally create a connection to server and
send the data. But I need to create that connection to
the server for setting cookie. Because the API internally create the URL-Connection ( The API has no method
to set property to URL-Connection ) .So how can I send cookie
with URL-connection . If you have any better idea that
can solve my crisis plz share with me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:32:28+00:00Added an answer on May 18, 2026 at 8:32 am

    You’ve not posted any code that makes a request, but I think what you need to do is this:

    URLConnection conn = you get a connection from somewhere...;
    ...
    conn.setRequestProperty("Cookie", "cookieName=cookieValue");
    ...
    

    See here for more details, Also you may want to research cookies a bit to make sure your implementation is secure and works.

    Also, remember that javascript is allowed access to cookies through document.cookie.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a web browser in java. For parsing and rendering I am
I'm developing web application supported by Spring Integration. I'm using 1.0.4.RELEASE. I use CGLib
I've been developing web applications for 2 years now, and have been into simpler
I am developing web method for webservice in java. In this web method I
I am developing a Java web services application that is (mostly) to be used
I'm developing a game that I will distribute using Java Web Start / JNLP.
I'm developing a web browser, my problem now is that arabic web sites cannot
I am developing a web browser for a touch-screen kiosk and the scrollbars on
I am developing a custom Web Interface Browser for Subversion Repositories with C#/ASP.NET and
I'm developing a GWT web app. I write the code in java in client

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.