Hallo alle zusammen,
mein Problem ist folgendes:
Laut Code soll der Textfile geladen werden und ausgegeben. Drin steht nur: "Du bist ich". Öffnet man dies im Browser wird es auch angezeigt. Nur teste ich es mit meinem Programm bekomme ich folgendes:
Wo liegt da der Fehler?
Ich bedanke mich jetzt schonmal für jede Antwort!
mein Problem ist folgendes:
Code:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
try
{
NMHTTP1->Get("http://www.jumanet.info/joshua.txt");
RichEdit1->Text=NMHTTP1->Body;
Application->MessageBox("Geht!", "Fertig", 0+64);
}
catch (...)
{
Application->MessageBox("Geht net!", "Fehler", 0+24);
}
}
Laut Code soll der Textfile geladen werden und ausgegeben. Drin steht nur: "Du bist ich". Öffnet man dies im Browser wird es auch angezeigt. Nur teste ich es mit meinem Programm bekomme ich folgendes:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Object not found!</title>
<link rev="made" href="mailto:%5bno%20address%20given%5d" />
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
body { color: #000000; background-color: #FFFFFF; }
a:link { color: #0000CC; }
p, address {margin-left: 3em;}
span {font-size: smaller;}
/*]]>*/--></style>
</head>
<body>
<h1>Object not found!</h1>
<p>
The requested URL was not found on this server.
If you entered the URL manually please check your
spelling and try again.
</p>
<p>
If you think this is a server error, please contact
the <a href="mailto:%5bno%20address%20given%5d">webmaster</a>.
</p>
<h2>Error 404</h2>
<address>
<a href="/">h463838.serverkompetenz.net</a><br />
<span>Sun May 27 20:14:02 2007<br />
Apache/2.0.54 (Unix)</span>
</address>
</body>
</html>
Wo liegt da der Fehler?
Ich bedanke mich jetzt schonmal für jede Antwort!