Jump to content


Photo

HTTP сервер


  • Please log in to reply
3 replies to this topic

#1 Serg

Serg

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 142 posts
  • LocationMoscow

Posted 12 July 2018 - 08:35 AM

1. Пишу

 

procedure TUniServerModule.UniGUIServerModuleHTTPCommand(
  ARequestInfo: TIdHTTPRequestInfo; AResponseInfo: TIdHTTPResponseInfo;
  var Handled: Boolean);
begin
   if  (Pos('/qwe',ARequestInfo.Document)>0) then
   AResponseInfo.ContentText:='qwe';
end;
 
2.Запускаю
 
3.Вызываю 
 
 
4.Получаю Invalid session or session Timeout. 
 
Вопрос: В чем ошибка?

 


  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 5177 posts

Posted 12 July 2018 - 08:50 AM

Добрый день,

 

Вы должны установить Handled := True


  • 0

#3 Serg

Serg

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 142 posts
  • LocationMoscow

Posted 12 July 2018 - 08:57 AM

Спасибо


  • 0

#4 Serg

Serg

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 142 posts
  • LocationMoscow

Posted 12 July 2018 - 11:11 AM

Спасибо!


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users