Guest User

Untitled

a guest
Dec 19th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. jsonRawRequest := TJSONObject.Create;
  2. jsonObject.AddPair('CodeNumberTextBox', '');
  3. jsonObject.AddPair('txusername', myUsername);
  4. jsonObject.AddPair('txpass', myPassword);
  5. jsonRequest := TStringStream.Create(jsonRawRequest.ToString(), TEncoding.UTF8);
  6.  
  7. idHttp.Request.ContentType := 'application/json';
  8. idHttp.Request.Referer := 'SomeURL';
  9. idHttp.Post(URL, jsonRequest, ms)
Add Comment
Please, Sign In to add comment