-2

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=

1 Answers1

0

Just use the Postman or any other HTTP client.

staskrak
  • 873
  • 2
  • 10
  • 22