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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:42:39+00:00 2026-06-07T12:42:39+00:00

I am trying to parse and manipulate HTML using jsoup . It is working

  • 0

I am trying to parse and manipulate HTML using jsoup. It is working perfectly fine for HTTP URLs but it’s throwing UnknownHostException if a HTTPS URL is used. Following is my code:

System.setProperty("http.proxyHost", "192.168.0.1");
System.setProperty("http.proxyPort", "8080");

Document doc = Jsoup.connect("https://www.google.com/").get();

I was rather expecting an exception related to SSL certificates but what could be the reason for UnknownHostException? Please note that the following code runs perfectly for http://www.google.com/

  • 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-07T12:42:40+00:00Added an answer on June 7, 2026 at 12:42 pm

    Check here, you need to specify the proxy for https in a seperate way.

    System.setProperty("https.proxyHost", "your host");
    System.setProperty("https.proxyPort", "your port");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that using Regular expressions to parse or manipulate HTML/XML is a bad
I'm trying to manipulate an audio file (mp3), using <audio> and javascript but nothing
Trying to parse the following json using gson in my android app but givien
Trying to parse an HTML document and extract some elements (any links to text
Trying to parse some XML but apparently this is too much for a lazy
Im trying to parse the string located in /proc/stat in a linux filesystem using
Trying to parse a YouTube feed using PHP simplexml_load_file(); I am able to access
I'm trying to parse a MIME-Message, using SharpMimeTools and some sample Mime Messages from
trying to parse this: <?xml version=1.0 encoding=UTF-8?> <directoryresponse xmlns=https://www.sisow.nl/Sisow/REST version=1.0.0> <directory> <issuer> <issuerid>01</issuerid> <issuername>ABN
Im trying to parse twitter trends but i keep getting a parser error at

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.