🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #337

Re: How can I open website with some parameter by "post" method ?

#337
From: Remy Lebeau (TeamB)
Date: Wed, 22 Nov 2006 17:56
26 lines
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
Technical Details
Message-ID: <45648fe1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <45646e0a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,2bbfe3f923e32c02
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <45646e0a@newsgroups.borland.com>
Subject: Re: How can I open website with some parameter by "post" method ?
Date: Wed, 22 Nov 2006 09:56:20 -0800
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 69.169.4.232
Message-ID: <45648fe1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1164218337 69.169.4.232 (22 Nov 2006 09:58:57 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail