Url mit Proxy

Zero_Base

Mitglied
Hallo zusamen,

ich habe ein Problem, das ich leider nicht selbe weiter lösen kann. Ich soll ein Download des Inhaltes einer Seite ausfüren:

Code:
string url="http://xxxxxx.com:8080/commom/config.cfg";
//Create a new WebClient instance.
WebClient myWebClient = new WebClient();					
 // Download the target Web Resource into a byte array.
byte[] myDatabuffer = myWebClient.DownloadData (url);
// Display the downloaded data.
string download = Encoding.ASCII.GetString(myDatabuffer);
MessageBox.Show(download);

In der dritten zeile (myWebClient.DownloadData (url)) gibt es immer ein Fehler "Bad Gateaway.

Vielen dank im voraus,

Zero_Base
 

Neue Beiträge

Zurück