HttpAgent icon indicating copy to clipboard operation
HttpAgent copied to clipboard

Posting Body (without converting request body in to json)

Open chiragpurohit71085 opened this issue 7 years ago • 1 comments

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.

chiragpurohit71085 avatar Jan 27 '17 19:01 chiragpurohit71085

you can always use the method withBody(String body) and send whatever you want...

studioidan avatar Jan 28 '17 16:01 studioidan