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 8706711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:40:51+00:00 2026-06-13T03:40:51+00:00

I am working on a application which allows user to download JARs which is

  • 0

I am working on a application which allows user to download JARs which is actually a PDF player displaying some PDFs which are downloaded as a part of JAR itself.

Now whenever users clicks on that JAR File, I want to validate the PDF Bundle on the server (whether it got expired? Or a new version is available). Also, I want my PDF Content to get updated if a new version of the downloaded bundle is available. So I will need to download the PDFs from the server if a new version is there.

So I want to make a HTTP Request to the server from inside my JAR & receive some PDFs (and some additional data as well) as response.

Any idea how I can do this? Is there some API available for creating HTTP Requests from a plain Java Program?

  • 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-06-13T03:40:52+00:00Added an answer on June 13, 2026 at 3:40 am

    Send an HTTP request by creating a URL and getting the connection for it, and casting it to HttpURLConnection.

    Add an “If-Modified-Since” header, with the download date of your local file. If the server responds with 304 (not modified), then your local version is up-to-date.

    If the local version is not up-to-date, the server will respond with the actual content, which you use to update your local cache.

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

Sidebar

Related Questions

I have been working on an application which allows the user to make a
I've been working on a simple application which allows the user to take a
I am working on a Django application which allows a user to upload files.
Im working on a Client/server chat application which allows user to send files (images
I'm currently working on an application which allows the user to read and a
I'm working on an application which allows employees to Request time off that post
I'm working on an android application which allows users to create accounts on a
We are working on an application which processes PDF documents. One of the features
I have a application that allows a user to choose some parameters for a
I have a PHP web application running on IIS, which allows a user to

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.