W3C home > Mailing lists > Public > www-lib@w3.org > October to December 1999

RE: User Agent field in GET request

From: Olga Antropova <olga@goliath.eai.com>
Date: Mon, 04 Oct 1999 15:00:58 -0500 (CDT)
Message-ID: <XFMail.991004150058.olga@eai.com>
To: oleg oksjuk <oksyuk@hotmail.com>
Cc: www-lib@w3.org
Hi Oleg,

In HTTPReq.c function HTTPMakeRequest there is code to generate that field:

 ....

 if (request_mask & HT_C_USER_AGENT) {
        PUTS("User-Agent: ");
        PUTS(HTLib_appName());
        PUTC('/');
        PUTS(HTLib_appVersion());
        PUTC(' ');
        PUTS(HTLib_name());
        PUTC('/');
        PUTS(HTLib_version());
        PUTBLOCK(crlf, 2);
    }

Try to remove HTLib_name and HTLib_version:

 if (request_mask & HT_C_USER_AGENT) {
        PUTS("User-Agent: ");
        PUTS(HTLib_appName());
        PUTC('/');
        PUTS(HTLib_appVersion());
        PUTBLOCK(crlf, 2);
    }

Olga Antropova.

On 04-Oct-99 oleg oksjuk wrote:
> When I perform GET request libwww sends to the server User Agent field in 
> the header of the request like
>    appName/appVersion libwww/5.2.8
> May I perform GET request with User Agent field like
>    appName/appVersion       (without the second part)?
> 
> Is anybody can advise me anything?
> 
> 
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
Received on Monday, 4 October 1999 16:01:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:35 GMT