[twsocket] BCB 6 - ics - httpcli (get html code) - how ?

2006-05-09 Thread Marcus Mattes
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;
AnsiStringBuf;


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


Re: [twsocket] Using the ftp-client

2006-05-09 Thread Bjørnar Nielsen

> Have you specified a filename for local and remote ?

Thanks, I missed that part, I had just set the name for local. Now it works.

Regards Bjørnar


-- 
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


Re: [twsocket] Using the ftp-client

2006-05-09 Thread Francois Piette
> I want to conect and upload a file and quit, and found the
> Transfer-prcedure. All seems fine, I get logged in and the password is
> correct, but I get the following error-message when sending the file:
> "< 500 'STOR' not understood"
>  
> Is this a known problem?

Have you specified a filename for local and remote ?
Do you have the right permissions on the FTP server ?

--
Contribute to the SSL Effort. 
Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
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


[twsocket] Using the ftp-client

2006-05-09 Thread Bjørnar Nielsen
I tried the FTP-client of ICS for the first time today.
 
I want to conect and upload a file and quit, and found the
Transfer-prcedure. All seems fine, I get logged in and the password is
correct, but I get the following error-message when sending the file:
"< 500 'STOR' not understood"
 
Is this a known problem?
 
I'm not wery familiar with ftp. I tried using WinSCP to upload files, and
that worked (not sure if this program uses the ftp-protocol though).
 
Regards Bjørnar
-- 
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