I'm trying really hard to use HttpClient lib in my project.
I can't figure out what's going on...
I tried local URLs, examples online, even on Xamarin.Forms pages and nothing. It just doesn't work and I can't figure out what am I doing wrong here.
This is code: (taken from here, btw: https://github.com/conceptdev/xamarin-forms-samples/blob/master/HttpClient/HttpClientDemo/Earthquake/GeoNamesWebService.cs)
The second breakpoint is never hit.
This is my references section:
I tried manually inserting the System.Net.Http like I saw in some examples, but it also doesn't work:
Any ideas?
EDIT
To add more information. If I use my local server and set a breakpoint there, it is never hit as well. It looks like the request never "leaves" the application. And I think this could be related to not being able to add System.Net.Http. But I don't know... It's really stressing me out...
Waiting to resolve:
Fiddler:
# Result Protocol Host URL Body Caching Content-Type Process Comments Custom
3675 200 HTTP api.geonames.org /earthquakesJSON?north=44.1&south=-9.9&east=-22.4&west=55.2&username=bertt 1,232 no-cache application/json;charset=UTF-8 windowsformsapplication1.vshost:18544
TARGET:





return await earthquakesJson;it still never reaches the second BP.