Re: Problem with packing headers

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Wapme Systems AG
Message-ID <[email protected]>
Vjacheslav Chekushin wrote:
> 
> Hi, list.
> Writing http_header_pack function I get strange behavour for
> some web sites.
> 
> 1)
> GET /img/eslogo0P.wbmp HTTP/1.1
> Host: wap.eurosport.com
> Accept: text/html
> Accept: image/vnd.wap.wbmp
> 
> Works.
> 
> 2)
> GET /img/eslogo0P.wbmp HTTP/1.1
> Host: wap.eurosport.com
> Accept: text/html, image/vnd.wap.wbmp
> 
> Works.
> 
> 3)
> GET /img/eslogo0P.wbmp HTTP/1.1
> Host: wap.eurosport.com
> Accept: text/html,
>   image/vnd.wap.wbmp
> 
> HTTP/1.1 406 No acceptable objects were found
> Server: Microsoft-IIS/5.0
> --skipped--
> 
> As I undestand from HTTP specification all 3 requests are completly
> equivalent. And my http_header_pack realization make 1->3
> translation.
> So question is: do I misundestand specifications or something else?

Are you sure that case 3 is a valid HTTP header?!

AFAIK, each HTTP header entity must be a single line ended by a
newline. Case 3 would break this ruleset.

Stipe

[email protected]
-------------------------------------------------------------------
Wapme Systems AG

Münsterstr. 248
40470 Düsseldorf

Tel: +49-211-74845-0
Fax: +49-211-74845-299

E-Mail: [email protected]
Internet: http://www.wapme-systems.de
-------------------------------------------------------------------
wapme.net - wherever you are
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.