SHARE
TWEET

Untitled

HongTamRD Aug 26th, 2019 (edited) 258 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include "_HttpRequest.au3"
  2. #include "String.au3"
  3.  
  4. $email = "hongtamrd@gmail.com"
  5.  
  6.  
  7. $data = _HttpRequest(2, "https://member.lazada.vn/user/register?signupType=email")
  8. $token = _StringBetween($data, 'id="X-CSRF-TOKEN" content="', '"')
  9. If IsArray($token) Then
  10.     ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $token = ' & $token[0] & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console
  11.  
  12.     $sHeaders = 'x-csrf-token: ' & $token[0] & '|x-requested-with: XMLHttpRequest'
  13.     $dPost = '{"email":"' & $email & '","type":"EMAIL_REGISTER","lzdAppVersion":"1.0","X-CSRF-TOKEN":"' & $token[0] & '"}'
  14.     $data = _HttpRequest(2, "https://member.lazada.vn/user/api/sendVerificationEmailCode", $dPost, '', '', $sHeaders)
  15.     ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : $data = ' & $data & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console
  16. EndIf
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top