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
