Home >Web Front-end >JS Tutorial >Specific implementation of httpclient simulated login (using js to set cookies)_javascript skills

Specific implementation of httpclient simulated login (using js to set cookies)_javascript skills

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 17:09:43720browse

httpclient simulates login (use js to set cookies)

Copy code The code is as follows:



<script>document.cookie='utmpnum=51;path=/;domain=.' window.location.host</script>
<script>document.cookie='utmpkey= 20154732;path=/;domain=.' window.location.host</script>