[En-Nut-Discussion] Still need a definitive answer regarding backwards compatibility issue...

James Flanagan james.flanagan at stsint.com
Wed Jan 11 17:54:01 CET 2006


There appears to be a compatibility issue with version 3.9.2 and 4.0.1 
(haven't tried any versions between these two) in regards to
the req_query member of the following structure:


struct _REQUEST {
    int req_method;                 /*!< \brief Request method. */
    int req_version;                /*!< \brief 11 = HTTP/1.1, 10 = 
HTTP/1.0, 9 = HTTP/0.9 */
    int req_length;               /*!< \brief Content length */
    char *req_url;                /*!< \brief URI portion of the GET or 
POST request line */
    char *req_query;            /*!< \brief Argument string. */
    char *req_type;             /*!< \brief Content type. */
    char *req_cookie;           /*!< \brief Cookie. */
    char *req_auth;             /*!< \brief Authorization info. */
    char *req_agent;            /*!< \brief User agent. */
    char **req_qptrs;           /*!< \brief Table of request parameters */
    int req_numqptrs;           /*!< \brief Number of request parameters */
};


With version 3.9.2, the req_query member properly returns a pointer to a 
null terminated string which contains the HTTP query string.  However, 
in 4.0.1 the pointer returned does not , it appears to return only the 
first few chars up to the first '=' character.  Is this a bug or by 
design.  Should it be reported??

Thanks. -jim

-- 
James (Jim) Flanagan
STS International, Inc.
9875 18th St. N.
St. Petersburg, Florida 33716
(727) 828-1554
james.flanagan at stsint.com




More information about the En-Nut-Discussion mailing list