Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > C++ Builder > TIdHTTP::Post(char *,TStringList *)


Автор: aluk 1.9.2007, 19:25
подскажите в чем проблемма отправляю пост запрос но на строке пост запроса:
IdHTTP1->Post("http://site", Values);
выдает ошибку:
Could not find a match for 'TIdHTTP::Post(char *,TStringList *)

Автор: Alca 8.9.2007, 21:28
Код

    TStringList *S = new TStringList();
    try {
        S->Add("login=xxxxxx");
        S->Add("password=yyyyyy");

        Memo1->Text = IdHTTP1->Post("https://stat.ipnet.ua/", S);
    } __finally  {
        S->Free();
    }


таже муть.. Could not find a match for 'TIdHTTP::Post(char *,TStringList *) 
Хелп!!!

Автор: Fazil6 8.9.2007, 21:45
Цитата(Alca @  8.9.2007,  21:28 Найти цитируемый пост)
таже муть.. Could not find a match for 'TIdHTTP::Post(char *,TStringList *)
 Хелп!!!

не понимаю что вас удивляет...
Цитата

Send HTTP data to a web server or CGI program.

procedure Post(URL: string; const Source: TStrings; const AResponseContent: TStream); overload;
procedure Post(URL: string; const Source: TStream; const AResponseContent: TStream); overload;

Parameters

URL: string

Location of the host or CGI application.

const Source: TStream

Object containing the request data.

const AResponseContent: TStream

Destination for response data.

Description

Post is a procedure used to send the data in a HTTP request to a web server or CGI program.

Post calls the DoRequest method to perform the HTTP transfer.

Indy currently reverts the HTTP version to 1.0 in a call to the Post method. This occurs because some HTTP servers do not respect the RFC for HTTP 1.1 to the full extent of the specification. In particular, most servers do not send or expect to receive the 100-Continue HTTP header. Until an optimum solution that does NOT break the RFC is discovered, Indy will restrict all POSTS to version HTTP 1.0 compliance.

Автор: Alca 8.9.2007, 22:34
 smile 

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)