IntelliJ IDEA Http Client Tool Usage Tutorial

Today I suddenly discovered a useful tool that can replace Postman, so I immediately started using it.

The tool is used in IntelliJ IDEA 2025.2

Edit the<span><span>generated-requests.http</span></span> file

GET example:

### Query user listGET http://localhost:8080/api/v1/getUsers
### Query userGET http://localhost:8080/api/v1/getUser?id=1

POST example:

### Save userPOST http://localhost:8080/api/v1/saveUserContent-type: application/json;charset=UTF-8
{    "name": "Zhang San",    "age": 18}
### Save user (form-data)POST http://localhost:8080/api/v2/saveUser?name=Zhang San&amp;age=18Content-type: application/form-data;charset=UTF-8

PUT example:

### Edit userPUT http://localhost:8080/api/v1/updateUserContent-type: application/json;charset=UTF-8
{    "id": 1,    "name": "Zhang San",    "age": 18}

DELETE example:

### Delete userDELETE http://localhost:8080/api/v1/deleteUser

File upload example:

### Image uploadPOST http://localhost:8080/api/v1/uploadFile# Request type form-data, define boundaryContent-Type: multipart/form-data; boundary=WebAppBoundary
# Encapsulate multipart boundary must be followed by a new line--WebAppBoundaryContent-Disposition: form-data; name="file"; filename="Snipaste_2025-11-07_14-38-23.png"Content-Type: image/png
# File path must be followed by a new line&lt; C:\DevTools\images\Snipaste_2025-11-07_14-38-23.png--WebAppBoundary--

Leave a Comment