HTTP 请求测试

提示:对于GET请求,请求体通常不会被发送。

使用说明

基本用法

  1. 选择HTTP方法(GET、POST等)
  2. 输入目标URL
  3. 添加请求头(可选)
  4. 添加请求体(对于POST、PUT等)
  5. 点击"发送请求"按钮

示例URL

  • GET https://jsonplaceholder.typicode.com/posts/1
  • POST https://jsonplaceholder.typicode.com/posts
  • GET https://httpbin.org/get
  • POST https://httpbin.org/post

常用请求头

  • Content-Type: application/json
  • Authorization: Bearer token
  • Accept: application/json
  • User-Agent: Custom User Agent