Guest User

Untitled

a guest
Feb 12th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. IdHTTP1:= TIdHttp.Create(Application);
  2. IdHTTP1.ConnectTimeout:= 10000;
  3. IdHTTP1.Request.Clear;
  4. IdHTTP1.Request.BasicAuthentication:= true;
  5. IdHTTP1.Request.Username := Username;
  6. IdHTTP1.Request.Password := Password;
  7. try
  8. IdHTTP1.Get(PbxURL); **//this should STOP here and wait for answer don't?**
  9. HttpCode:= IdHTTP1.ResponseCode;
  10. except
  11. on E: EIdHTTPProtocolException do
  12. HttpCode := IdHTTP1.ResponseCode;
  13. end;
  14. if HttpCode=200 then
  15. Memo1.Lines.Append('Valid Get!');
Add Comment
Please, Sign In to add comment