Chunked transfer encoding won't work

Login to reply to this topic.
Fri, 2008-01-04 16:55
Joined: 2007-11-16
Forum posts: 5

Hi !

I'm developping a streaming application for the Nokia 6120c.

I'm handling the communication with an RSocket.

When the request contains a "Transfer-Encoding", that request doesn't seem to be sent (I don't get anything by doing a tcpdump on the server).

Hiding the Active Object management code, I basically have the following flow :

// Two similar requests, the commented one works

//_LIT8(KPostTextTmp,"POST /dump.php HTTP/1.1\r\nHost: somehost.example.com\r\nContent-type: audio/x-wav\r\nConnection: Keep-Alive\r\n\r\n");
_LIT8(KPostTextTmp,"POST /dump.php HTTP/1.1\r\nHost: somehost.example.com\r\nTransfer-Encoding: chunked\r\nContent-type: audio/x-wav\r\nConnection: Keep-Alive\r\n\r\n");

iRequest.Copy(KPostTextTmp);

// Connection Initialization

iSockServ.Connect();
iSock.Open(iSockServ, KAfInet, KSockStream, KProtocolInetTcp);
iSock.Connect(addr, iStatus) ;

// Then writing a request

iSock.Write(iRequest, iStatus);

I suspect a bug in the API implementation, as I get the same symptoms by using an RHTTPTransaction (where chunked is implied when you return KErrNotFound for MHTTPDataSupplier::OverallDataSize() )

Is this a known problem ? Did I do something wrong ?
Are there workarounds ?

Thanks.


Fri, 2008-01-04 18:55
Joined: 2007-11-16
Forum posts: 5
[Solved] Chunked transfer encoding won't work

Problem solved, without code change.

If it happens to you, try to change the access point.

In my case, the provider was blocking chunked requests for the specific access point I was using.

Fri, 2008-01-04 18:56
Joined: 2003-05-27
Forum posts: 363
Re: Chunked transfer encoding won't work

Hi,

It seems unlikely that this phone would filter your packets at TCP/IP level. I would suggest the following:

1) See with connection monitor software on the phone whether any data is being sent out. If yes, there is a problem on your server or the operator or the ISP.
2) Try on any other S60 phones to see if you can reproduce the results.
3) Try the same request with Telnet on your laptop/PC using your S60 as a modem.

Fri, 2008-01-04 18:57
Joined: 2003-05-27
Forum posts: 363
Re: Chunked transfer encoding won't work

Ok, so it was case 1) that failed Smiling .

  • Login to reply to this topic.