Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8632969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:25:28+00:00 2026-06-12T09:25:28+00:00

I would ask if someone was kind enough to explain to me how to

  • 0

I would ask if someone was kind enough to explain to me how to login at webpage from Delphi app. All the examples I’ve found here have proved useless to me or I’m doing something wrong. I’m tired of the search and the code that does not work.

There is no error message, I even get page code into Memo but seems it’s code from login page (not account [dashboard] page) – seems this code can’t pass auth at all and I don’t know why.

What is wrong in this code :

procedure Login;
var
 HTTP: TIdHTTP;
 Param: TStringList;
 S: String;
begin
 HTTP := TIdHTTP.Create(nil);
 HTTP.CookieManager := Main_Form.CookieManager;
 Param := TStringList.Create;
 Param.Clear;
 Param.Add('login=example');
 Param.Add('password=example');

try
 HTTP.Get ('http://www.filestrum.com/login.html');
 HTTP.Post('http://www.filestrum.com/login.html', Param);
 S := HTTP.Get ('http://www.filestrum.com/?op=my_account');
 Main_Form.Memo2.Lines.Add(S);
finally
  HTTP.Free;
  Param.Free;
end;
end;

or with this version :

procedure Login;
var
 HTTP: TIdHTTP;
 S: String;
begin  
 HTTP                             := TIdHTTP.Create(nil);
 HTTP.CookieManager               := Main_Form.CookieManager;
 HTTP.Request.BasicAuthentication := True;
 HTTP.Request.Username            := 'example';
 HTTP.Request.Password            := 'example';
 HTTP.AllowCookies                := True;
 HTTP.HandleRedirects             := True;

 S := HTTP.Get ('http://www.filestrum.com/?op=my_account');
 Main_Form.Memo2.Lines.Add(S);
end;

Used Delphi XE2 and there is no way to make this code running and login. It’s same with XE3 demo. As I said, I’m really tired searching some solution, waste days into it and nothing.

Please guys, some help here. Really need it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:25:28+00:00Added an answer on June 12, 2026 at 9:25 am

    Try something like this:

    function Login: string;
    var
      IdHTTP: TIdHTTP;
      Request: TStringList;
      Response: TMemoryStream;
    begin
      Result := '';
      try
        Response := TMemoryStream.Create;
        try
          Request := TStringList.Create;
          try
            Request.Add('op=login');
            Request.Add('redirect=http://www.filestrum.com');
            Request.Add('login=example');
            Request.Add('password=example');
            IdHTTP := TIdHTTP.Create;
            try
              IdHTTP.AllowCookies := True;
              IdHTTP.HandleRedirects := True;
              IdHTTP.Request.ContentType := 'application/x-www-form-urlencoded';
              IdHTTP.Post('http://www.filestrum.com/', Request, Response);
              Result := IdHTTP.Get('http://www.filestrum.com/?op=my_account');    
            finally
              IdHTTP.Free;
            end;
          finally
            Request.Free;
          end;
        finally
          Response.Free;
        end;
      except
        on E: Exception do
          ShowMessage(E.Message);
      end;
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like ask if there's a way to download an android layout from
Does someone know a wrapper which would allow SQLite to load its data from
I would like to ask if someone knows any good gem for creating nice
today i would ask you if someone know how Check if the user has
I would ask a question regarding compilers, specifically how they work. I would believe
I think I already know the answer to this but thought I would ask
I have a weird problem, so I thought I would ask and see if
I am not sure what this error is. Thought I would ask you guys
Lately I've been job hunting, and for the most part, they would ask me
What I would like ask is best illustrated by an example, so bear with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.