使用idhttpserver中的安全http(https)

时间:2019-05-03 10:52:53

标签: localhost samplegrabber

我遇到错误:Error in parsing command,当尝试使用安全的http-https://localhost:8080/

从具有idhttpserver的本地主机获取用户代理时

但是可以正常使用http-http://localhost:8080/

我的代码是:

  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 个答案:

没有答案
相关问题