Tagged articles
4 articles
Page 1 of 1
Java Architect Essentials
Java Architect Essentials
Nov 28, 2023 · Backend Development

Various Ways to Send HTTP Requests in Java

This article introduces multiple Java approaches for sending HTTP GET and POST requests, covering the built‑in HttpURLConnection class, Apache HttpClient, Square's OkHttp, and Spring's RestTemplate, with step‑by‑step explanations and complete code examples for each method.

BackendHTTPHttpClient
0 likes · 8 min read
Various Ways to Send HTTP Requests in Java
IT Services Circle
IT Services Circle
Apr 10, 2022 · Backend Development

How to Perform HTTP Requests in Java Using HttpURLConnection

This article demonstrates how to implement HTTP requests in Java using the built-in HttpURLConnection class, covering request creation, adding parameters, setting headers, handling timeouts, cookies, redirects, and reading responses, including error handling, with complete code examples.

BackendHTTPHttpURLConnection
0 likes · 8 min read
How to Perform HTTP Requests in Java Using HttpURLConnection