Advertisement
Guest User

Untitled

a guest
May 19th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. //lokale call:
  2.  
  3. String.Format returned
  4. -----------
  5.  
  6. string.Format returned "grant_type=password&username=a%40gmail.com&password=password" string
  7.  
  8.  
  9. Response:
  10. --------------------------
  11. + response {StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
  12. {
  13. Pragma: no-cache
  14. X-SourceFiles: =?UTF-8?B?QzpcVXNlcnNcS2FybFxEb2N1bWVudHNcR2l0SHViXEFwcERldjE3XzIwMTZcUHJvZ3JhbW1hXFNUVUZWd2ViYXBpXFNUVUZWd2ViYXBpXG9hdXRoXHRva2Vu?=
  15. Cache-Control: no-cache
  16. Date: Thu, 19 May 2016 14:39:50 GMT
  17. Server: Microsoft-IIS/10.0
  18. X-Powered-By: ASP.NET
  19. Content-Length: 550
  20. Content-Type: application/json; charset=UTF-8
  21. Expires: -1
  22. }} System.Net.Http.HttpResponseMessage
  23.  
  24.  
  25. resultJson:
  26. --------------------------
  27. resultJSON "{\"access_token\":\"Uy3JjmVMFGFqhIRhoOZ0LMLAgsZ4ZR-Ce77ZNphaZbBp8JNtBYcugW_GBtncY6_PPDrLwySwGPD7ito2s7qmPVq990knk1clf48pGZt55Ua0D5olpnxEunVDI9u5njnkt9hfGxoNYCyq8EZpc_gI9lcQLYBWgzzpkouAKHYOOFUzfrhYfpKENO7o879bY_CwPfK0CXLdfl36NrD4XNhchPDmxZAvab_HmkMIG2KWVqBL8jTkaD6VTFXYzkyOIed1bJeLmVO2INjLPDecWN1FzvOze8FngaSjBigMjVRBTnQXvEMvmCjk6PYt8MWxeuh9Y9dNs09qS-qxGGrOxnQ45jVXZUyTsh4gPGxViTJHasQ3z4YiQ45WucbN7gsnTTE5bVsIzhLZ4LAzAsrVKoCZqMqWDCAKv0C0zXlPm_R2W4ST8X73mG0w86GRcHB6PiMbl4MHTKSM3wW-wJchYCxYZ65AcEIKMFCWqoajrzfPytk\",\"token_type\":\"bearer\",\"expires_in\":1799}" string
  28.  
  29. --------------------------
  30.  
  31. //Azure call:
  32.  
  33. String.format returned
  34. -----------
  35.  
  36. string.Format returned "grant_type=password&username=a%40gmail.com&password=password" string
  37.  
  38.  
  39. Response:
  40. --------------------------
  41.  
  42. + response {StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
  43. {
  44. Pragma: no-cache
  45. Cache-Control: no-cache
  46. Date: Thu, 19 May 2016 14:24:46 GMT
  47. Set-Cookie: ARRAffinity=f156a392050fb920c15a31ab6835cc333e4683ba4394e03f1a58d6e42a96af67;Path=/;Domain=teamtucapi.azurewebsites.net
  48. Server: Microsoft-IIS/8.0
  49. X-Powered-By: ASP.NET
  50. Content-Length: 25
  51. Content-Type: application/json; charset=UTF-8
  52. Expires: -1
  53. }} System.Net.Http.HttpResponseMessage
  54.  
  55. Result json:
  56. --------------------------
  57. resultJSON null string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement