用户代理更改可能吗? [英] Is User Agent Change Possible?

查看:70
本文介绍了用户代理更改可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在几个地方听说过PHP硬编码的useragent。它很糟糕,不像Perl

你可以输入任何东西。它甚至比Wget更糟糕。


我想知道PHP5现在是否允许用户代理更改,因为它似乎添加了许多

标头相关的功能。但是我还没有看到一个。

I heard PHP hard coded useragent in several places. It sucks, unlike Perl
which you can enter anything. It is even worse than Wget.

I wonder if PHP5 allows User Agent changes now, because it seems to add many
header related functions. But I still did not see one yet.

推荐答案

你好,


2004年7月21日上午01:47,Asker写道:
Hello,

On 07/21/2004 01:47 AM, Asker wrote:
我在几个地方听说过PHP硬编码的useragent。它很糟糕,不像Perl
你可以输入任何东西。它甚至比Wget更糟糕。

我想知道PHP5现在是否允许用户代理更改,因为它似乎添加了许多与头相关的功能。但是我还没有看到一个。
I heard PHP hard coded useragent in several places. It sucks, unlike Perl
which you can enter anything. It is even worse than Wget.

I wonder if PHP5 allows User Agent changes now, because it seems to add many
header related functions. But I still did not see one yet.




你的意思是什么?用户代理由请求

页面的浏览器定义。你的意思是当PHP通过fopen()获取远程页面时?


-


问候,

Manuel Lemos


PHP类 - 免费准备使用用PHP编写的OOP组件
http://www.phpclasses.org/

PHP评论 - PHP书籍和其他产品的评论
http://www.phpclasses.org/reviews/


Metastorage - 数据对象关系映射层生成器
http:/ /www.meta-language.net/metastorage.html



What do you mean? The user agent is defined by the browser that requests
the pages. Do you mean when PHP fetches remote pages via fopen()?

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html


>你什么意思?用户代理由请求
> What do you mean? The user agent is defined by the browser that requests
页面的浏览器定义。你的意思是当PHP通过fopen()获取远程页面时?
the pages. Do you mean when PHP fetches remote pages via fopen()?




是的,我的意思是在fopen中



yes, i meant that in fopen


2004年7月21日星期三01:15:59 -0400

" Asker" <是ne ******************** @ alexa.com>写道:
On Wed, 21 Jul 2004 01:15:59 -0400
"Asker" <ne********************@alexa.com> wrote:
你是什么意思?用户代理由请求页面的浏览器定义。你的意思是当PHP通过
fopen()获取远程页面时?
What do you mean? The user agent is defined by the browser that
requests the pages. Do you mean when PHP fetches remote pages via
fopen()?



是的,我的意思是在fopen中



yes, i meant that in fopen




很抱歉,你为什么还要打扰?

我的意思是,如果它对你来说真的那么重要的话,请为

perl-写一个包装好东西......甚至更好......抓住最新的PHP资源并编辑它

你自己...


Madsen


-

Anders K. Madsen --- http: //lillesvin.linux.dk


"世界上有10种类型的人。

了解二元的人 - 以及那些谁不是。


-----开始PGP签名-----

版本:GnuPG v1.2.4(GNU / Linux)


iD8DBQFA / gKQlNHJe / JASHcRAoxiAJ9upB6xLfgteIoGK1oruu3mw9G7ewCeIgFy

P16vmVe0Pu + gm / 8poZgLzP0 =

= rDZO

-----结束PGP签名-----



I''m sorry, but why do you even bother?
I mean, if it really is that important to you, write a wrapper for the
perl-thingy... Or even better... Grab the latest PHP source and edit it
yourself...

Madsen

--
Anders K. Madsen --- http://lillesvin.linux.dk

"There are 10 types of people in the world.
Those who understand binary - and those who don''t."

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA/gKQlNHJe/JASHcRAoxiAJ9upB6xLfgteIoGK1oruu3mw9G7ewCeIgFy
P16vmVe0Pu+gm/8poZgLzP0=
=rDZO
-----END PGP SIGNATURE-----


这篇关于用户代理更改可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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