David Chkhartishvili <[EMAIL PROTECTED]> wrote:
> Hi List,
> 
> I've experienced problems accessing wap.sonyericsson.com using SE T68i 
> (latest CVS).

> 31 2e 31 0d 0a   GET / HTTP/1.1..
> 2003-07-18 11:49:20 [10] DEBUG:   data: 48 6f 73 74 3a 20 77 61 70 2e 73 

> 2003-07-18 11:49:20 [10] DEBUG: HTTP: Status line: <HTTP/1.1 301 Moved 
> Permanently>

> 2003-07-18 11:49:20 [8] WARNING: WSP: Content type <text/html> not 
> supported by client, deleting body.
> 2003-07-18 11:49:20 [8] WARNING: WSP: content-type text/plain not supported

Sorry, I found out what's happening. This is my "return HTTP 406" patch
that is rejecting this content because text/plain is not supported by
device (not in accept).

I've fixed this and I'll commit as soon as I fix a similar and related
problem I have with latest SE-T610 firmware:

T610 does HEAD's before a real GET, leaving me without knowing what to
do.

In an example site I have, he does an HEAD to an url, which returns an
location. I've already fixed the problem above and kannel correctly
returns the location header and an empty body as text/plain. fortunatly,
mobile ignores text/plain on 3xx http responses.

But then he does another HEAD to the new location, with Accept */*,
which server returns with text/html.
I've patched kannel to add its's accepts if device accepts */* (turning
into an "*/*, text/vnd.wap.wml, ....", and server now returns a right 
text/vnd.wap.wmlc. 

But what should I do now ? I probably should return this content-type
and an empty body.

I'm now testing some combinations.. sorry for this messy reply ;)



Reply via email to