Hi guys,
Is there any way to handle HTTP redirect (301) with MoSync HTTP connection API ? Is this issue being resolved?
Thanks in advance
Hi guys,
Is there any way to handle HTTP redirect (301) with MoSync HTTP connection API ? Is this issue being resolved?
Thanks in advance
When you get a 301 response, you should be able to read the "location" header using HttpConnection::getResponseHeader() or maHttpGetResponseHeader(). You can then create a new connection to that location.
Handling redirects automatically is outside the scope of the current API. It would be possible to write a new class on top of the existing HttpConnection.