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

    Mar 26, 2025 · A quick and practical guide to performing basic HTTP requests using Java's built-in HttpUrlConnection.

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

    Dec 28, 2015 · GetMethod get = new GetMethod("http://httpcomponents.apache.org"); // execute method and handle any error responses. ... InputStream in = …

  3. 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.

  4. 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 …

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

    How to send a GET request in Java? 1.1. Preparing a request. .GET() .uri(URI.create("https://api.restful-api.dev/objects/7")) .build(); In order to represent a request …

  6. HTTP GET request in java - Stack Overflow

    I'm trying to use http get request on java, to my localhost on port number 4567. I got the get request: "wget -q -O- http://localhost:4567/XXXX " [XXXX is some parameter - not relevent].

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

    Mar 27, 2023 · To set an HTTP method for a request, the builder has methods with the equivalent name: GET, POST, PUT, and DELETE. The request body is passed as a parameter in a …

  8. GET request with Java sockets - Stack Overflow

    Aug 19, 2015 · GetRequest getReq = new GetRequest(); //Runs SendReq passing in the url and port from the command line. getReq.SendReq("www.badunetworks.com/about/", 80); public …

  9. How to send HTTP request GET/POST in Java - Mkyong.com

    May 25, 2013 · In this article, we will show you a few examples to make HTTP GET/POST requests via the following APIs. 1. Apache HttpClient. In the old days, this Apache HttpClient is …

  10. JAVA- Send HTTP Get/Post Request and Read JSON response

    Jul 1, 2017 · This tutorial shows how to send HTTP Get Request using java and Read JSON response. To read json Response you will have to add java-jason.jar to class path. Send …

Refresh