Forum Xamarin.iOS


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Making HTTP requests in iOS

EdEastwoodEdEastwood USMember ✭✭

I am currently developing a cross platform app using Xamarin Forms PCL. I need to make an HTTP request to an API. This has to be integrated natively using the DependencyService.

On the Android side, I just use the HTTPClient. I am not as familiar with iOS, however, and all the tutorials I am finding are not offering much help.

I need to make a request to an API, post data to it and then receive a response back. What should I be using to do this? I have seen things about NSUrl and such but they don't really seem to be working on Xamarin and the Xamarin iOS docs don't mention anything about Internet connections. If anyone could could help me out, with whatever information they can offer, that would be great!

Best Answers


Sign In or Register to comment.