Hi all,
my first post here, so at first, hallo oO ... i'm from germany and my
programming skills in c++ are a bit low, also my english is not the best,
but perhaps you can help me.
My Problem i will post a String with httpcli to a server, and wants to get
the html code of the answer page from the server.
My way i tested it is a little bit lower. I got no errors or something else,
but in the RichEdit1 i didnt get any output :(
I use the latest ics relase, bevor i updatet i got an output with
the ->LastResponse, but it also was a bit strange, because only a little
peace of the documents html code was displayed.
I User c++ builder 6.0 from borland.
My Source Code:
<<
TMemoryStream *DataIn;
TMemoryStream *DataOut;
AnsiString Buf;
DataIn = new TMemoryStream;
DataOut = new TMemoryStream;
String post = "search=test&action=do";
Buf = post;
DataOut->Write(&Buf[1], Buf.Length());
DataOut->Seek(0, soFromBeginning);
HttpCli1->SendStream = DataOut;
HttpCli1->RcvdStream = DataIn;
HttpCli1->URL = "http://www.test.de/index.php"; // as example
HttpCli1->Post();
// dont work
RichEdit1->Text = HttpCli1->LastResponse;
// dont work
RichEdit1->Lines->LoadFromStream(DataIn);
>>
thanks for your help
marcus
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be