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=