Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Can you post what's in your headers using an HTTP Proxy (like Charles)?</p> <p>You may need to modify your "request headers" in the post call. </p> <p>Make sure your firewall is able to accept POST calls. This might be an https issue.</p> <p><strong>EDIT:</strong></p> <p>You may need to configure your server to always return the response as a GZIP and DEFLATE based on the extension type. This is based on here (<a href="http://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/" rel="nofollow noreferrer">http://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/</a>). </p> <p>Example:</p> <pre><code># compress json format in .htaccess (for apache servers): AddOutputFilterByType DEFLATE application/json </code></pre> <p>You can find the 'mod_deflate' documentation here (<a href="http://httpd.apache.org/docs/2.0/mod/mod_deflate.html" rel="nofollow noreferrer">http://httpd.apache.org/docs/2.0/mod/mod_deflate.html</a>)</p> <p>If you can post the outgoing headers, that would also be useful, as they should include:</p> <pre><code>Accept-Encoding: gzip, deflate </code></pre> <p>Similar issues</p> <ul> <li><p><a href="https://groups.google.com/forum/?fromgroups#!topic/restkit/Xo84PH1l5kM" rel="nofollow noreferrer">https://groups.google.com/forum/?fromgroups#!topic/restkit/Xo84PH1l5kM</a></p></li> <li><p><a href="https://stackoverflow.com/questions/1414446/weird-406-not-acceptable-error">Weird &quot;406 not acceptable&quot; error</a></p></li> <li><p><a href="https://serverfault.com/questions/183843/content-length-not-sent-when-gzip-compression-enabled-in-apache">https://serverfault.com/questions/183843/content-length-not-sent-when-gzip-compression-enabled-in-apache</a></p></li> </ul> <p><strong>EDIT:</strong></p> <p>Make sure you also do this:</p> <p><code>[[RKClient sharedClient] setValue:@"gzip" forHTTPHeaderField:@"Accept-Encoding"];</code></p> <p>or this</p> <p><code>[[RKClient sharedClient] setValue:@"gzip, deflate" forHTTPHeaderField:@"Accept-Encoding"];</code></p> <p>This should set the value of your header to accept "gzip" for encoding the response. I noticed these github issues:</p> <ul> <li><p><a href="https://github.com/RestKit/RestKit/pull/540" rel="nofollow noreferrer">https://github.com/RestKit/RestKit/pull/540</a></p></li> <li><p><a href="https://github.com/RestKit/RestKit/issues/511" rel="nofollow noreferrer">https://github.com/RestKit/RestKit/issues/511</a></p></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload