“浏览器发布”和“浏览器发布”之间有什么区别?和“节目发布”? [英] What's the difference between "browser posting" and "program posting"?

查看:116
本文介绍了“浏览器发布”和“浏览器发布”之间有什么区别?和“节目发布”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾在一个月前问过一个问题,这里是:post方法直接与服务器通信

I've asked one question about this a month ago, it's here: "post" method to communicate directly with a server.

我仍然没有得到的原因,为什么有时我得到404错误,有时一切正常,我的意思是我试过那些代码与几个不同的wordpress博客。使用firefox或IE,你可以发表评论,没有任何问题的任何wordpress博客,但使用python和post方法直接与服务器通信404与几个博客。我试图欺骗头,在代码中添加cookie,但结果保持不变。这让我很久了...任何人都知道原因吗?或者我应该添加什么代码使程序工作就像一个浏览器,如firefox或IE等?希望你们会帮助我!

And I still didn't get the reason why sometimes I get 404 error and sometimes everything works fine, I mean I've tried those codes with several different wordpress blogs. Using firefox or IE, you can post the comment without any problem whatever wordpress blog it is, but using python and "post" method directly communicating with a server I got 404 with several blogs. And I've tried to spoof the headers, adding cookies in the code, but the result remains the same. It's bugging me for quite a while... Anybody knows the reason? Or what code should I add to make the program works just like a browser such as firefox or IE etc ? Hopefully you guys would help me out!

推荐答案

你应该使用机械化。

这篇关于“浏览器发布”和“浏览器发布”之间有什么区别?和“节目发布”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆