Advertisement
Guest User

Untitled

a guest
Mar 11th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. Http.MimeType:='application/x-www-form-urlencoded';
  2. if http.HttpMethod('GET', 'https://www.etsy.com/') then
  3. begin
  4. HTML.Text:= Utf8ToAnsi (HTML.Text);
  5. Parsing[0]:=Form1.Pars('<input type="hidden" name="_nnc" value="',Http.Headers.Text, '"');
  6. Http.Clear;
  7. Http.MimeType:='application/x-www-form-urlencoded';
  8. Data.WriteString('external_account_id=&external_avatar=&external_username=&external_account_type_name=&external_name=&google_auth_code=&google_auth_token=&google_refresh_token=&connect_facebook=&connect_google=&username='+Input.Login+'&password='+Input.Password+'&_nnc='+Parsing[0]+'&from_page=https%3A%2F%2Fwww.etsy.com%2Fsignin&from_action=signin-header');
  9. Http.Document.LoadFromStream(Data);
  10. if http.HTTPMethod(POST, 'https://www.etsy.com/signin?ref=hdr&from_action=signin-header&from_page=https%3A%2F%2Fwww.etsy.com%2Fsignin') then
  11. begin
  12. if Pos('location: https://www.etsy.com/signin?show_panel=true', Http.Headers.Text) <> 0 then
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement