fire_to_me
2020-07-08 11:51 阅读 358

爬虫抓取数据,实际的ajax请求和js代码中的不一致

目标网址

http://125.35.6.80:8181/ftban/itownet/hzp_ba/fw/pz.jsp?processid=20200701150147wx14e&nid=20200701150147wx14e

调试代码看到的ajax请求

jQuery.ajax({
        url:G.baseUrl + "itownet/fwAction.do?method=getBaInfo",
        dataType:"JSON",
        cache:true,
        type:"POST",
        data:{processid:G.processid},
        error:function(){
            $("#dzpznr").html("<div align='center' class='dzpcss2'>抱歉,加载失败!</div>");
        },
        beforeSend:function(){
            $("#dzpznr").html("<div align='center' class='dzpcss2'><img src='"+G.baseUrl+"images/ajax.gif' style='vertical-align:middle;'/>正在加载......请稍后......</div>");
        },
        success:function(data){

实际发送的请求

Request URL: http://125.35.6.80:8181/ftban/itownet/fwAction.do?method=getBaInfo&6SQk6G2z=5SMJTUZ6CatejaGit9oWhJQ9z.FvmEbrqKo8XCTh4r212oUVG25hChgoyN29QwFaE_69y2qzENhYTBV46UO1XayXgJtovjkTevHRTqTOyy3e2K2Xqk7I2guM5cIhqxYoe6pcf9m1hxiyKBym4R7ugEkmXj0q5q_SCNucSgHTfCuSGlX58pIA3DfvAw9BHeiBdX_3Chv8RCg.3ltFgygNtBCjMO10B.bUG32Wzxe0tNU_rEDvdYD9.z2415wKx5A1L5Z0KSHMQB2g.tB3OLRsatI_W83qaJ5dkCmJYkHRRNQf1NuyaUW5MqMU1W8.8KoWB7.qhrpG4.GafhQ.CvJdNmeFMGVO9VZXjia8C0PWIoo7CQqdowILJYy6D92d2o6ZHunj
Referrer Policy: no-referrer-when-downgrade

疑问

实际发送的请求多出来的参数是怎样生成的?调试代码没有发现解决办法,是ajax的内部实现机制吗??
  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

相关推荐