Thread View: borland.public.cppbuilder.internet.web
3 messages
3 total messages
Started by Emmanuel
Wed, 22 Nov 2006 15:41
How can I open website with some parameter by "post" method ?
Author: Emmanuel
Date: Wed, 22 Nov 2006 15:41
Date: Wed, 22 Nov 2006 15:41
11 lines
1205 bytes
1205 bytes
Dear All, How can I open website with some parameter by "post" method by using C++builder eg: <FORM Name="f" method="POST" action="http://www.xxx.com" > <input type="HIDDEN" name="P" value="EEESSSE"> <input type="HIDDEN" name="S" value="123DDDE"> </Form> Emmanuel
Re: How can I open website with some parameter by "post" method ?
Author: Hans Galema
Date: Wed, 22 Nov 2006 16:29
Date: Wed, 22 Nov 2006 16:29
13 lines
1326 bytes
1326 bytes
Emmanuel wrote: > How can I open website with some parameter by "post" method > by using C++builder You can use Indy TIdHttp for posting. But what do you mean with 'open a website' ? What is your actual problem? Do you know how to post and are only these hidden inputs causing problems? Hans.
Re: How can I open website with some parameter by "post" method ?
Author: Remy Lebeau (TeamB)
Date: Wed, 22 Nov 2006 17:56
Date: Wed, 22 Nov 2006 17:56
26 lines
1540 bytes
1540 bytes
"Emmanuel" <emmanuel@erphk.com> wrote in message
news:45646e0a@newsgroups.borland.com...
> How can I open website with some parameter by "post" method
> by using C++builder
If you are using Indy, then put the values into a TStringList and call the
Post() method of the TIdHTTP component:
AnsiString HTML;
TStringList *Values = new TStringList;
try
{
Values->Add("P=EEESSSE");
Values->Add("S=123DDDE");
HTML = IdHTTP1->Post("http://www.xxx.com", Values);
}
__finally
{
delete Values;
}
Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads