Skip to content

Instantly share code, notes, and snippets.

@luigisaggese
Created May 25, 2013 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save luigisaggese/5648294 to your computer and use it in GitHub Desktop.
Save luigisaggese/5648294 to your computer and use it in GitHub Desktop.
json
var json = new Cirrious.MvvmCross.Plugins.Json.MvxJsonConverter();
var client = new Cirrious.MvvmCross.Plugins.Network.Rest.MvxJsonRestClient
{
JsonConverterProvider = () => json
};
var request = new MvxRestRequest(address);
request.CookieContainer = new CookieContainer();
CookieCollection cc = new CookieCollection();
cc.Add(new Cookie("JE", "01*YZXv5AFHpSAQiMh992BCikUgAiMFq7GK9jxX95wm/uTWC7sXOONp3LFoT6pLriI0yILcrPQr4ydq4C2kdPoLYbmKgBa3kFWdlMzXztdaCyi8RaCd1P8rPtnBIYZR+0D3+hgyNQ3TOrEVvgyaHdoJfGO29fZWWGWT7frWEc5udL5yARsyozxZg1T8ILyaOHg/1qBcwRlcPynIel6bqtqDJu3qWyBwYlyFVPsudNlWF3HHHBT4aoQeiCP/cMoLX6RePhtsDJw2vUdtIP0qTKWZZC90900c8zt7WIZdTJaUuiVdqjsIMMHRtVdZPY+3PUea1dP7wkrysqzyMawvxzslL5n45OIxGeAAxKSm2NW0BDgtWvFXZXAxnSGnN8wViq2MV8iK38ah/ATO0L/gSOwloh0B7y8OWJEWE4pmm5TsEg0NqCgOY7bEs8r/cUgkGVou+Bu5ng19UzApw+tXG1smANKsCb9nvj6faKXcHn8OhGLdBhPkyIt56jZXMEmQnt4z8d8Y1MpaAE+rmHH02sbjwGJicMqNfLUUVkqlMbR/i6qADrAZti0O7lrwX+YyE2mYw4//jpnbHN6YHXdzc4lFOwmBEN2Bp6f8YisnCbyqFBD0UlJlgkSU98tZEaH3732pQr2paRmzkrL0orQgS/5S4A==", "/", "it.jobrapido.com"));
request.CookieContainer.Add(cc);
MvxDecodedRestResponse<SearchItem> theResponse = null;
Exception exception = null;
client.MakeRequestFor<SearchItem>(request,
(result) => { theResponse = result; },
(error) => { exception = error; });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment