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

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

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