ios - How do I set Content-type using Bubblewrap HTTP? -
ios - How do I set Content-type using Bubblewrap HTTP? -
i'm trying post request content-type: application/x-www-form-urlencoded. when view request charles (or fiddler) says application/json.
http.post(url, { :headers => {"content-type" => "application/x-www-form-urlencoded"} }) |response| puts response puts response.body.to_str end
bw::http.post("http://foo.bar.com/", {payload: data, headers: {"content-type": "application/x-www-form-urlencoded"} }) |response|
ios ruby http-headers rubymotion
Comments
Post a Comment