|
如题,小弟不才,才开始学习网页数据提取。本打算边实践边学习的,但是最近一个碰到的一个问题都不得解,就是POST报文的问题。
学习网页提取的时候,是拿公司网址做的实验,如图1,公司网址有三个框体需要输入,输入用户名后直接职位栏会出现对应的职位,小弟用fiddler截取的内容如下(图片2):
- <p>POST /hjxd/login.xhtml HTTP/1.1
- Accept: */*
- Accept-Language: zh-cn
- faces-request: partial/ajax
- Referer: http://192.168.1.253:8080/hjxd/login.xhtml
- Content-Type: application/x-www-form-urlencoded
- UA-CPU: AMD64
- Accept-Encoding: gzip, deflate
- User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Win64; x64; Trident/7.0; .NET CLR 2.0.50727; SLCC2; .NET4.0C; .NET4.0E; Media Center PC 6.0; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
- Host: 192.168.1.253:8080
- Content-Length: 3336
- Connection: Keep-Alive
- Pragma: no-cache
- Cookie: username=kaiqiang_sun; JSESSIONID=2777FDC58FB40E540B19972F2D1761DC; menuSelected=; clientlanguage=zh_CN</p><p>
- </p><p class="blockcode"><blockquote>form1=form1&form1%3Aispageload=true&form1%3Atbx_hid_operateResult=&form1%3Atbx_hid_operateMessage=&form1%3Atbx_hid_loginPage=Pages%2Findex.xhtml&form1%3Atbx_hid_loginOrg=&form1%3Atbx_hid_loginIP=&form1%3Atbx_accountcode=kaiqiang_sun&form1%3Atbx_accountpassword=&form1%3ApostValue=af4b147e-3cbf-4cca-8c85-b14a2452b064%7C%7C0cc37016-9257-41d1-a3c6-1bbf51b7cbd7&javax.faces.ViewState=H4sIAAAAAAAAANVYX2wURRifu%2F6hlCJQKGgQ8QFJVG7ba%2B96xULgelfoybV39k7kT%2BI6uze9bru3u87OXbeFNPCARk2MRCExQsQIiTG8GB78k5hofDAxooGEF6OE%2BEjUEBOi8UGd2d3bvS13QMuVhH2YzlxnZ77vt7%2Ff9818538HTZqOwaoJWIJckUgyNwT18WGoNS356etv1r50qQH4d4FWWYW5XVAkKk6Ap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wpBeYTbfz1z9q%2Bjr%2Fb5WZHHLs16pD1SLAgIv3L%2BxIZl71x7o1xx3q1582ikqx65%2F2rdk2Ski9yxIBijx%2B6RbCKe4bMpPhqPO7b7XKWyzxZmoy1sK9%2B2%2F%2BhjDmsVI4cGo%2FF6QHJugZDc1c3gOaMMVm0nyhLsexAluAzSZHCL%2Fg5oxv%2FTZrSCyhkAAA%3D%3D&javax.faces.source=form1%3Abtn_changePost&javax.faces.partial.event=change&javax.faces.partial.execute=form1%3Abtn_changePost%20%40component&javax.faces.partial.render=%40component&org.richfaces.ajax.component=form1%3Abtn_changePost&form1%3Abtn_changePost=form1%3Abtn_changePost&AJAX%3AEVENTS_COUNT=1&javax.faces.partial.ajax=true
复制代码
|
-
登录界面
-
|