The post method using indy components

Posted on 2004-11-30
Last Modified: 2013-11-17
i'm trying to post data to a php (Version 4.3.8) webpage using indy components (version 8.0.25),it comes with builder 6, but it doesn't work. The webpage return a empty array. Anyone can help me ? You can see the c++ builder and php code below.
best regards!

//C++ Builder code

void __fastcall TForm1::Button1Click(TObject *Sender)

// i'm runing tcpviwer on localhost port 5555, so i'm able to see what happen

TStringStream* ret_url = new TStringStream("");
TStringList *parametros = new TStringList();

//this web site exist you can test
AnsiString url="";



//PHP code

echo"dados postados:<br>";
Question by:directcall

    Author Comment

    Why does noboby answer anything about my doubt?
    LVL 25

    Accepted Solution

    I would suggest updating Indy to the current version 9.x.  I think I have 9.14 but I beleive the most recent is 9.17.  There have been some pretty significant changes.

    Anyway,  I ran the code without the proxy settings and my result was as follows:

    dados postados:<br>Array
        [PIN] => 1234567890113

    It's not empty but I don't know what you are expecting to come back.


    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project ( automates most of the tasks discussed in this article. You can even fin…
    Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
    THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now