> String post = "search=test&action=do"; Does your script expect url-encoded data for his post ?
> // dont work > RichEdit1->Text = HttpCli1->LastResponse; What is displayed ? btw: First try with a TMemo. > // dont work > RichEdit1->Lines->LoadFromStream(DataIn); What is displayed ? btw1: First try with a TMemo. btw2: Do a DataIn->Seek(0, 0); to reste stream position to start. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be ----- Original Message ----- From: "Marcus Mattes" <[EMAIL PROTECTED]> To: <twsocket@elists.org> Sent: Tuesday, May 09, 2006 6:10 PM Subject: [twsocket] BCB 6 - ics - httpcli (get html code) - how ? > 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 -- 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