Topic: get http post value

Hi,

One question, i have one form with username and password , if i want to this form post data to http page like verify.php
and get result if exist or not the user , how to do it?

This is good for example for software registration request..

Thank you.

Re: get http post value

Hello.


Example, hot to send params using method POST

procedure Form1_Button1_OnClick (Sender: string; var Cancel: boolean);
var
    slParam: TStringList;
    sResult: string;
begin
    slParam := TStringList.Create;
    slParam.Add('login=admin');
    slParam.Add('password=123');
    sResult := HTTPPost('http://example.com/verify.php', slParam);
    slParam.Free;

end;
Dmitry.

Re: get http post value

Super, thank you.

Re: get http post value

Work with local host with other host i have problem to retrieve data.

Re: get http post value

settimox wrote:

Work with local host with other host i have problem to retrieve data.

Please provide more details.

Dmitry.

Re: get http post value

DriveSoft wrote:
settimox wrote:

Work with local host with other host i have problem to retrieve data.

Please provide more details.

When the data come from web site real , not localhost i tihk the realsite block to retrieve data if don't come from browser.

or?


Can one site have restriction about don't allow me to retrieve data ?

Re: get http post value

If you have problem with all Web sites, I think you have some firewall which blocked http queries from app.


Please check it out
https://www.sevenforums.com/tutorials/5 … ption.html

Dmitry.