I have the error: Error in parsing command when try to get the user agent from my localhost with idhttpserver using secure http - https://localhost:8080/

But works fine with normal http - http://localhost:8080/

My code is:

  procedure TForm1.IdHTTPServer1CommandGet(AContext: TIdContext;
  ARequestInfo: TIdHTTPRequestInfo; AResponseInfo:      TIdHTTPResponseInfo);
  begin
  Memo1.Lines.Add(ARequestInfo.UserAgent);
  end;

  procedure TForm1.IdHTTPServer1Exception(AContext: TIdContext;
   AException: Exception);
     begin
   Memo1.Lines.Add(AException.Message);
   end;

0 Answers