bert
unread,Feb 29, 2012, 4:47:29 PM2/29/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to RestSharp
By default RestSharp uses the following accept header in the request:
accept: application/json, application/xml, text/json, text/x-json,
text/javascript, text/xml
I want to change it, for example to:
accept: application/json
I've tried with request.AddHeader("accept", "application/json") but
that didn't work.
Is there a way to change the accept header in the request?