W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2001

How do I get the HTTP status description

From: Putz Doug <PutzDoug@JohnDeere.com>
Date: Wed, 21 Feb 2001 17:03:41 -0600
Message-ID: <44E8F46BB3EFD211B9210008C75DAB9A036B43A9@e90corp3.dx.deere.com>
To: "'www-lib@w3.org'" <www-lib@w3.org>
The server I'm talking to can send back the following response because of an
internal servlet error:

HTTP/1.1 555 Poll Error (13512013)~~Cannot upload file, a file with the same
name already exists in inbound directory

How can I get the description portion of this status line, a dump of the
buffer array in HTTP.c shows:

Buffer:[HTTP/1.1 555 ok
]

// CODE CHANGE IS
/////////////////////////////////////////////////////////////

        HTResponse * response = HTRequest_response(request);

        char * ptr = me->buffer+5;                     /* Skip the HTTP part
*/ 
        char * vptr = NULL;

        int major = 0;

        int minor = 0;

        printf("Buffer:[%s]\n",me->buffer); /// temporarily added this line
        me->version = vptr = HTNextField(&ptr);


///////////////////////////////////////////////////////////////


What's happening to the text "Poll Error (13512013)~~Cannot upload file, a
file......" ?
Received on Wednesday, 21 February 2001 18:04:14 GMT

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