C # simulation Baidu Login and comment on the designated website replies (a)

Source: Internet
Author: User

Core information : Request URL: Https://passport.baidu.com/v2/api/?login
Request Method: POST
Status Code: http/1.1 OK
Request Header//user agent, refers to the browser, its information includes hardware platform, system software, application software and user's personal preferences. In X. 400 electronic system, user agent is a kind of data packaging, the creation of packet header, and address, delivery of the message parts. User agents are not just browsers, but also search engines。user-agent: mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) gecko/20100101 firefox/40.0//reference address
Referer: Http://passport.zongheng.com/?location=http%3A%2F%2Fwww.zongheng.com%2F//Specifies that the "No-cache" value indicates that the server must return a refreshed document, even if it is a proxy server and has a local copy of the page.
Pragma: No-cache//The host and port in the initial URL.

Host:p assport.baidu.com

//No tracking
DNT: 1
Connection: keep-alive//Cache mode
Cache-control : No-cache//The type of language the browser wishes to use when the server is able to provide more than one language version.
Accept-language: zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3//The data encoding method that the browser can decode, such as gzip. The servlet can return a GZIP-encoded HTML page to a browser that supports gzip. In many cases this can reduce download time by 5 to 10 times times.
accept-encoding: gzip, deflate//The MIME type acceptable to the browser.
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Send Cookies
UBI: Fi_pncwhpxz~takazjs2kmy1aj~ejsay5waothqofqdty~gmyktqmlzwi855qbp5kfkovwslwdm426-o6za
PSTM: 1440874285
Hosupport: 1
H_ps_pssid: 16716_1435_16710_16975_17012_12867_16937_16800_16935_17003_15310_11732_13932_16969_10634_16866_17051
Bidupsid: F2D05C9CD65A4B08A3398B45DCCE79FA
bdrcvfr[gltlrb7qnct]:mk3slvn4hkm
Baiduid: f2d05c9cd65a4b08a3398b45dcce79fa:fg=1
Send form data //Verification Code
Verifycode:
username: 13543452240
u: http://zongheng.baidu.com/sendbduss.do?source=0&location=http%3A%2F%2Fwww.zongheng.com%2F&_t= 1440874289725
TT: 1440874310669
TPL: Zongheng
token: ba24e21e7854ca8ff0c97d3374f3cd67
Subpro:
Staticpage: http://passport.zongheng.com/v3Jump.html
SAFEFLG: 0
Rsakey: Qa94r9ecjnjsin8kwvwgearzog7sjco9
Quick_user: 0
Ppui_logintime: 20266
Password: qzfsw8bf6omeq9cygoh/ezddugsrkmmccpczv/z4wfk7xtowmtafd2ooas64yzhghdqyrkxpwmyeop9nw+/tj3t3gr73sr7odh71htxwd/h+ pswyg1k/y8zplez2ud8ed0jyk03i/llovrvo4ixvorusns5txlfpm/vpbzgwh6s=
Mem_pass: On
Loglogintype:p C_loginbasic
Logintype: Basiclogin
Loginmerge: True
Isphone: false
IDC:
GID: 2cad7c5-2890-4e73-9ef4-7d4884dd7be5
Detect: 1
Crypttype: 12
codestring:
CharSet: Utf-8
Callback:p arent.bd__pcbs__ok0875
Apiver: V3
Response Header Δ328ms
Vary: accept-encoding
transfer-encoding: chunked
Pragma:p ublic
P3P: cp= "OTI DSP COR IVA our IND COM"
last-modified: Sat, 18:52:07 18AugGMT
Expires: 0
Etag: w/"nwczsrattjuaksuxptgfrybjep4uu7ps:1440874327"
Date: Sat, 18:52:07 GMT
Content-type: text/html
content-encoding: gzip
Connection: keep-alive
Cache-control:p ublic
the Cookie received
Usernametype: 3
UBI: fi_pncwhpxz~tal902pky-dlnuhxhixcfaoio8usphdklcougx~6tpeszsrcljgh4i2joyhjf89ejpunn-psy7awqzg9~ Luka36lzgi-vwacsonarzzjoorx9acmr0yze0bg9xmqd0elhjt1htp4mkrqisd67rt
Stoken: 831edce8a805251f2804d16f097bc9f38df98fb3d107267581f1481eaf007029
Saveuserid: a619ac30812bc617e9fdea028cd957
PTOKEN:d eleted
PTOKEN:d 56A25169BF00E85B3526DB09775EBD9
PASSID: Yzuoge
History: 4ae4298bf57103aa5139faa502cd2fd4a5185c
Bduss: GHSAWRGAEF3ETRTSTJTQU9NMNDMTMKYEK1NEVL2TZZ3Q0TVBM5MSEXJVLHQQWXXQVFBQUFBJCQAAAAAAAAAAAEAAABF25CSU6JT6S7UZP27QNPQAAAAAAAAA Aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaff~4vvx~-fvr
Response Body δ0ms
<! Doctype html>

PS: The most important step of the simulation login is to grab the packet analysis, get the corresponding cookies, if you encounter problems, please check the code logic first to see if you have access to the site need to provide cookies (some are not necessary to do not pass)

C # simulation Baidu Login and comment on the designated website replies (a)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.