About 4,290,000 results
Open links in new tab
  1. Do a Simple HTTP Request in Java - Baeldung

    Mar 26, 2025 · In this quick tutorial, we present a way of performing HTTP requests in Java — by using the built-in Java class HttpUrlConnection. Note that starting with JDK 11, Java provides …

  2. Java HTTP GET/POST Request Example Tutorial - Java Guides

    This tutorial shows how to send a GET and a POST request in Java. We use built-in HttpURLConnection class and Apache HttpClient class.

  3. Java HttpClient Tutorial: Master HTTP Requests with GET, POST

    Apr 17, 2025 · Learn how to create HTTP requests in Java using the HttpClient library. This comprehensive tutorial covers GET and POST requests, query parameters, asynchronous …

  4. How do I do a HTTP GET in Java? - Stack Overflow

    Dec 28, 2015 · If you dont want to use external libraries, you can use URL and URLConnection classes from standard Java API. An example looks like this: String urlString = …

  5. Java 11 HttpClient Examples - Mkyong.com

    Oct 11, 2019 · This article shows you how to use the new Java 11 HttpClient APIs to send HTTP GET/POST requests, and some frequent used examples. .version(HttpClient.Version.HTTP_2) …

  6. How To Use Java HttpURLConnection for HTTP GET and POST …

    Nov 19, 2022 · The HttpURLConnection class from java.net package can be used to send a Java HTTP Request programmatically. In this article, you will learn how to use HttpURLConnection …

  7. How to make requests with Java HTTP Client (vanilla Java)

    Mar 27, 2023 · An example of performing a GET request: .uri(URI.create("https://example.com/")) .build(); As the example shows, the HTTP Client is based on the classes HttpClient, …

  8. Send a GET request in Java - restful-api.dev

    A Tutorial on how to send the HTTP GET request in Java to the REST API and fetch a response as an object

  9. Java URL example: How to send HTTP request GET/POST in Java ...

    Jul 25, 2023 · Below is a simple example to get Response from URL in Java Program. The URLConnection class contains many methods that let you communicate with the URL over the …

  10. Send HTTP GET request in Java - Techie Delight

    Aug 13, 2022 · This post will discuss how to send HTTP GET request in Java. 1. Using URLConnection/HttpURLConnection. The URLConnection class offers several methods for …

Refresh