phpbar.de logo

Mailinglisten-Archive

[php] HTTP-Request user-agent senden

[php] HTTP-Request user-agent senden

Friedhelm Betz holliwell at gmx.net
Don Okt 30 02:38:27 CET 2003


On Thursday 30 October 2003 00:39, Jochem Schausten (Webmaster) wrote:
[...]

Hi,

> Ich zitier mal aus deren Regeln: "Application must in the http-request
> user-agent string provide state which program and version that is
> connecting to our Server, for example: 'ichbins version 1.0' "
>
> Wie sende ich so einen HTTP-Request?
>

php.net/header und http://www.w3.org/Protocols/rfc2616/rfc2616
header ("User-Agent: ichbins version 1.0'");
header ("Location: http://www.example.com/");

oder am Anfang Deines Skripts:
ini_set("user_agent", "ichbins version 1.0 ");

oder (falls erlaubt und Modulversion) über .htaccess 
(http://www.php.net/manual/en/configuration.changes.php)

php_value user_agent "ichbins version 1.0"

Gruesse
Friedhelm

php::bar PHP Wiki   -   Listenarchive