Jump to content

403 Forbidden when attempting to access Rest API


cavneb

Recommended Posts

I am working on a ruby gem which works with the current REST api. I am able to generate a session key without issue but once I have the session key, any attempt at another request returns me a 403 Forbidden.

 

I am sending every header that is documented in the API docs and replaced the session key with the one I generated. Here are my headers:

{
  "Accept":"*/*",
  "DNT":1,
  "Referrer":"http://myserver.com/welcome.htm",
  "Accept_Encoding":"gzip,deflate,sdch",
  "Accept-Language":"en-US;en;q=0.8",
  "Cookie":"acct_table#pageNavPos=1; session=MYSESSIONKEY"
}

Can someone help me understand what I might be doing wrong?

 

Thanks!

Eric

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...