简体   繁体   中英

Send HTTP post with the given Request body and headers and get the respone

My question is that how i send http post to a server with request body and headers and get the response code and also get response content in String format

post url

http://192.168.1.2/default/en_US/sms_info.html?type=sms

request body

action:sms
send:send
line1:1
line2:1
line3:1
smscontent:im sending you this message from website
telnum:03459347900

headers

Origin:http://192.168.8.1
Upgrade-Insecure-Requests:1
Content-Type:application/x-www-form-urlencoded
Authorization:Basic YWRtaW46YWRtaW4=

只需使用Postman或任何其他 HTTP 客户端。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM