HttpAgent
HttpAgent copied to clipboard
Posting Body (without converting request body in to json)
Hi
HttpAgent.post("http://192.168.1.101:8002/dummy_file/generate_oauthSignature")
.withBody("key_1","value_1","key_2","value_2","key_N","value_N") // will be converted to json
.headers("Content-Type", "application/x-www-form-urlencoded")
I do not want to convert body in to json as server side tech. requires key_1 = value_1 param as a post.
you can always use the method withBody(String body) and send whatever you want...