<div dir="ltr">Hi guys, sorry to answer this question just now. Well, I checked with the backend developer and we solved the issue. My requests was already a json one. It was backend problem tough.<div><br></div><div>Thanks for helping.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 7, 2014 at 8:58 AM, Marc Pires <span dir="ltr">&lt;<a href="mailto:marcpiresrj@gmail.com" target="_blank">marcpiresrj@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi guys, i&#39;m having a little trouble with an app i&#39;m developing. Doing a post request against an API, I receive from the server that my request is going as text/html instead application/json, text/javascript or text/json that the API expects.<br>
<br></div>As I never had this problem before, i research the docs but did not found the reference yet, so how can i define my request to go as application/json instead text/html<span class="HOEnZb"><font color="#888888"><br clear="all"><div><div><div><br>-- <br><div dir="ltr">
<div>Desenvolvedor IOS, Rails, RIA</div><div><br></div><div><a href="http://www.linkedin.com/in/marcpires" target="_blank">http://www.linkedin.com/in/marcpires</a><br></div><a href="http://about.me/marcelo_pires" target="_blank">http://about.me/marcelo_pires</a><br>
</div>
</div></div></div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Desenvolvedor IOS, Rails, RIA</div><div><br></div><div><a href="http://www.linkedin.com/in/marcpires" target="_blank">http://www.linkedin.com/in/marcpires</a><br></div><a href="http://about.me/marcelo_pires" target="_blank">http://about.me/marcelo_pires</a><br></div></div>
</div>