About 1,510,000 results
Open links in new tab
  1. Java - Perform a http Request POST and GET on the same connection

    Mar 14, 2014 · I have a JSP form that passes info to a servlet java class, that in turn performs the HTTP post to the URL on the HTTP Server localhost:9010 with the data string. What I need to …

  2. Sending HTTP POST Request In Java - Stack Overflow

    Jul 24, 2010 · Sending a POST request is easy in vanilla Java. Starting with a URL, we need t convert it to a URLConnection using url.openConnection();. After that, we need to cast it to a …

  3. Send HTTPGET request over TCP connection to "localhost"

    Dec 11, 2016 · Actually, i can send HTTPGET request with URL connection like this: static Socket socket = null; public static void main(String args[]) throws UnknownHostException, …

  4. How to use HttpURLConnection for sending HTTP POST requests in Java ...

    Apr 3, 2024 · In this article, we focus on sending an HTTP POST using HttpURLConnection to send data and get a response from the server. Here is an API example that we have used to …

  5. How To Use Java HttpURLConnection for HTTP GET and POST Requests

    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 …

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

  7. Learn how to make HTTP request using plan Java Socket

    We can use TCP protocol in java to send HTTP request to the server. Let's starting coding to send HTTP request. In the above code, we have created a Socket object which is bound to the …

  8. Posting with Java HttpClient - Baeldung

    Jan 18, 2024 · In this tutorial, we’ll look at the sending POST requests using Java HttpClient. We’ll show how to send both synchronous and asynchronous POST requests, as well as concurrent …

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

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

  11. Some results have been removed
Refresh