Forum Xamarin.Android

Uri cant open Webspace url

lukasrein97lukasrein97 USMember ✭✭✭

Hello,

i have a problem it seems that my WebClient cant open my php file:
http://service-lukas-reiner.de/gutscheinqr/users_select.php

You can test it out this php file print a "Nein".

But my Webclient cant open it i guess.
I think its because the uri: http://service-lukas-reiner.de/gutscheinqr/users_select.php.
I think the Webclient need something like that: http://111.111.1.1/gutscheinqr/users_select.php.
I mean the IP Address.

So my Question is how can in use this http://service-lukas-reiner.de/gutscheinqr/users_select.php link in my Android WebClient?

Here is my Webclient:

     `   private static string urlAdress = "http://service-lukas-reiner.de/gutscheinqr/users_select.php";`

                    `//Upload Name zu Php
                    client = new WebClient();
                    uri = new Uri(urlAdress);
                    //GutscheinAktivitäten Liste Downloaden
                    client.DownloadDataAsync(uri);
                    client.DownloadDataCompleted += client_DownloadDataCompleted;`
Tagged:

Best Answer

Answers

Sign In or Register to comment.