0

When I call stackoverflow api from server side of my meteor application, I'm getting the follwoing result

query

var futt=new Future();
        var userDetailsURL = "http://api.stackexchange.com/2.2/users/1";
          HTTP.call("GET", userDetailsURL,{params:{site:"stackoverflow",key:'mykey'}},function(error,result)
          {
                futt.return(result);
                console.log(result);
           }); 
           return futt.wait();

In my terminal enter image description here

but when I callthe same method from my client side, it returning the results without zipping,

I don't want browser to take so much load, I want this to be run on server side, how to do this?

Any help really appreciated

marked as duplicate by Tim Stone Oct 16 '14 at 23:27

This question was marked as an exact duplicate of an existing question.

  • You need to de-gzip it, all responses are compressed. Exactly how you do that in your stack is more of a general question unrelated to the API. – Tim Stone Oct 16 '14 at 23:28
  • We are providing a platform for those who want to join this profession. – user28915 Oct 25 '14 at 11:46

Browse other questions tagged .