Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

client.SendAsync (request) error..... :(

$
0
0

Hi Xamarin Jedi masters !!!

I need a litle help First, I set the value of the Token

user.Token = "email@hotmail.com:1395694497451:799fcaa9f86ff10604ca0c6135313697";

Then I added the property to the Header :)

request.Headers.Add ("Auth-Token", user.Token); <------ HERE !!!

Then I call: var response = client.SendAsync (request).Result;

I´m receiving the message :

Unauthorized: Authentication token was either missing or invalid.

<

p>description This request requires HTTP authentication

BUT .. LISTEN !!!

If I put directly.... that way: request.Headers.Add ("Auth-Token", "email@hotmail.com:1395694497451:799fcaa9f86ff10604ca0c6135313697");

works !!!!!!!

Please ..... Somebody tell me how I can fix that and use the value that came from property user.Token......

sorry about my english


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>