burkeholland / InstaSharp

A c# wrapper for the Instagram API
Apache License 2.0
48 stars 1 forks source link

Replace AddParameter with HttpContent #27

Closed vincenthome closed 10 years ago

vincenthome commented 10 years ago

Failed to get access token. Following is the fix:

  1. HttpRequestMessage's 2nd param cannot be relative path
  2. The "POST" request created by AddParameter has content-length = 0 according to fiddler. And Instagram returns 400. After switch to using HttpContent to carry the payload ... now it works.

FYI. the other api (e.g. like.post, like.delete) seems to work fine without having to use HttpContent.

vincenthome commented 10 years ago

My environment is VisualStudion 2013 MVC app