Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //lokale call:
- String.Format returned
- -----------
- string.Format returned "grant_type=password&username=a%40gmail.com&password=password" string
- Response:
- --------------------------
- + response {StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
- {
- Pragma: no-cache
- X-SourceFiles: =?UTF-8?B?QzpcVXNlcnNcS2FybFxEb2N1bWVudHNcR2l0SHViXEFwcERldjE3XzIwMTZcUHJvZ3JhbW1hXFNUVUZWd2ViYXBpXFNUVUZWd2ViYXBpXG9hdXRoXHRva2Vu?=
- Cache-Control: no-cache
- Date: Thu, 19 May 2016 14:39:50 GMT
- Server: Microsoft-IIS/10.0
- X-Powered-By: ASP.NET
- Content-Length: 550
- Content-Type: application/json; charset=UTF-8
- Expires: -1
- }} System.Net.Http.HttpResponseMessage
- resultJson:
- --------------------------
- resultJSON "{\"access_token\":\"Uy3JjmVMFGFqhIRhoOZ0LMLAgsZ4ZR-Ce77ZNphaZbBp8JNtBYcugW_GBtncY6_PPDrLwySwGPD7ito2s7qmPVq990knk1clf48pGZt55Ua0D5olpnxEunVDI9u5njnkt9hfGxoNYCyq8EZpc_gI9lcQLYBWgzzpkouAKHYOOFUzfrhYfpKENO7o879bY_CwPfK0CXLdfl36NrD4XNhchPDmxZAvab_HmkMIG2KWVqBL8jTkaD6VTFXYzkyOIed1bJeLmVO2INjLPDecWN1FzvOze8FngaSjBigMjVRBTnQXvEMvmCjk6PYt8MWxeuh9Y9dNs09qS-qxGGrOxnQ45jVXZUyTsh4gPGxViTJHasQ3z4YiQ45WucbN7gsnTTE5bVsIzhLZ4LAzAsrVKoCZqMqWDCAKv0C0zXlPm_R2W4ST8X73mG0w86GRcHB6PiMbl4MHTKSM3wW-wJchYCxYZ65AcEIKMFCWqoajrzfPytk\",\"token_type\":\"bearer\",\"expires_in\":1799}" string
- --------------------------
- //Azure call:
- String.format returned
- -----------
- string.Format returned "grant_type=password&username=a%40gmail.com&password=password" string
- Response:
- --------------------------
- + response {StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
- {
- Pragma: no-cache
- Cache-Control: no-cache
- Date: Thu, 19 May 2016 14:24:46 GMT
- Set-Cookie: ARRAffinity=f156a392050fb920c15a31ab6835cc333e4683ba4394e03f1a58d6e42a96af67;Path=/;Domain=teamtucapi.azurewebsites.net
- Server: Microsoft-IIS/8.0
- X-Powered-By: ASP.NET
- Content-Length: 25
- Content-Type: application/json; charset=UTF-8
- Expires: -1
- }} System.Net.Http.HttpResponseMessage
- Result json:
- --------------------------
- resultJSON null string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement