login about faq

Hello,

I have error, I am sending GET request (http.synchronousrequest) to the server.

Before I send the request I fill up the Authorization header, but the authorization header is never filled up.

If I use a POST with PostJson2 the header is filled up.

---- Sending ---- GET /api/v19/mapas/GetListaMapasWithNormaToVersion?ano=2015&versao=19&norma=2 HTTP/1.1 Host: localhost:57588 Content-Length: 0

---- Received ---- HTTP/1.1 401 Unauthorized Content-Length: 61 Content-Type: application/json; charset=utf-8 Server: Microsoft-IIS/8.0 WWW-Authenticate: Bearer X-SourceFiles: =?UTF-8?B?QzpcUHJvZ1xkbmV0MTlcY2FscGhjdjJcY2FscGhjdjJcYXBpXHYxOVxtYXBhc1xHZXRMaXN0YU1hcGFzV2l0aE5vcm1hVG9WZXJzaW9u?= X-Powered-By: ASP.NET Date: Thu, 03 Dec 2015 09:14:06 GMT

{"message":"Authorization has been denied for this request."}

asked Dec 03 '15 at 09:20

realapak's gravatar image

realapak
1

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×14
×11

Asked: Dec 03 '15 at 09:20

Seen: 567 times

Last updated: Dec 03 '15 at 09:20

powered by OSQA