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

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

How do you set up a perforce server to work over the internet? -

ios - Lagging ScrollView with UIWebview inside -