Archived Forum Post

Index of archived forum posts

Question:

Problem with synchronousrequest GET

Dec 03 '15 at 09:20

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."}