Jump to content
  • 0
Đăng nhập để theo dõi  

Newbie nhờ cao nhân hướng dẫn code request login site run.qwiklab.com

Câu hỏi

Recommended Posts

  • 1

Nếu thým đang xài _HttpRequest thì thým mở file _HttpRequest Help, mở mục Practice → POST → application/x-www-form-urlencoded → Example 4 để xem ví dụ tương tự câu hỏi này.


#include <_HttpRequest.au3>

$email = "sopamoloye@creazionisa.com"
$pass = "123456"
$url = "https://run.qwiklab.com/users/sign_in?locale=en"
$authenticity_token = StringRegExp(_HttpRequest(2, $url), 'name="authenticity_token" value="(.*?)"', 1)[0]
$rq = _HttpRequest(2, $url, "utf8=%E2%9C%93&authenticity_token" & _URIEncode($authenticity_token) & "&user%5Bemail%5D=" & _URIEncode($email) & "&user%5Bpassword%5D=" & $pass & "&user%5Bremember_me%5D=0&commit=Sign+In")


Chia sẻ bài đăng này

Link tới bài viết
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Trả lời câu hỏi này...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Đăng nhập để theo dõi  

  • Create New...