Esato

Forum > Sony Ericsson / Sony > Technical > file download problem (Web server returned a too large message)

Author file download problem (Web server returned a too large message)
juanin
T230
Joined: Aug 30, 2004
Posts: 6
PM
Posted: 2004-10-22 18:50
Reply with quoteEdit/Delete This PostPrint this post
Hi,

Not sure if it's the right forum...

I'm programming some PHP scripts, for people to connect to them and download ringtones and screensavers

I have a test PHP to download a 6kb 101x68 gif file, which works fine with a Sony Ericsson T610 and a Nokia 6100, but with a Sony Ericsson T230 it gives the following error:

"Web server returned a too large message 6007"

If I upload the gif file to a webserver, and point the T230 it downloads ok, but not with my PHP script, so there must be something about it that the T230 does not like..

You can download a zip file including the test.php file and test.gif file I'm using to test with from:

http://www.juanin.com/test.zip

Any ideas on what may be wrong??

I repeat, it does work with other phones...

Thanks in advance,

Juan
DSF
R520
Joined: Dec 01, 2002
Posts: > 500
From: Romania
PM, WWW
Posted: 2004-10-23 15:34
Reply with quoteEdit/Delete This PostPrint this post
hey,

try this:
if (is_file($file))
{
header("Location: $file");
}
?>
call the script with script_name?file=filename

Also configure the .htaccess file:
AddType text/vnd.wap.wml wml
AddType image/jpeg jpg
AddType image/jpeg jpeg
AddType image/gif gif


However not on all web hosters let users to use personal .htacess file.. but try maybe it will work
DSF
R520
Joined: Dec 01, 2002
Posts: > 500
From: Romania
PM, WWW
Posted: 2004-10-23 18:42
Reply with quoteEdit/Delete This PostPrint this post
if you do not want to use a .htaccess file try this:
Quote:

$file = 'test.gif';
$content_type = 'image/gif';

if (is_file($file))
{
header("Content-type: ".$content_type."");
header("Content-Disposition: attachment; filename=$file");
readfile($file);
}

?>



If the previous code won't work try this:
Quote:

$file = 'test.gif';
$content_type = 'image/gif';

if (is_file($file))
{
header("Content-type: ".$content_type."");
readfile($file);
}

?>


If this still didn't work ... the only way is to use a .htaccess file...

Please let me know if it works or not.

_________________
http://xpc.go.ro/wap/ WEB
http://xpc.go.ro/wap.wml WML/WAP

[ This Message was edited by: DSF on 2004-10-23 17:44 ]
vanquish
V600
Joined: Mar 20, 2003
Posts: > 500
From: Wor Newcastle Phone: V600i
PM, WWW
Posted: 2004-10-23 19:19
Reply with quoteEdit/Delete This PostPrint this post
Are you sure this belongs in the Sony Ericsson general thread?
govigov
K500
Joined: Jul 30, 2004
Posts: > 500
From: Back home - Cochin
PM
Posted: 2004-10-23 21:40
Reply with quoteEdit/Delete This PostPrint this post
pls note 230 has wap version 1.2.1 and the 610 has wap2.0.

i am used to that error messages.. usually i send the link to shyam335's mobile and ask him to download for me.

i read in a thread that wap2.0 was not working in someplace and only 1.2.1 was working and the reason was a proxy server or something. leks had strong views i think
DSF
R520
Joined: Dec 01, 2002
Posts: > 500
From: Romania
PM, WWW
Posted: 2004-10-25 23:03
Reply with quoteEdit/Delete This PostPrint this post
so juanin did you resolved the problem?
govigov
K500
Joined: Jul 30, 2004
Posts: > 500
From: Back home - Cochin
PM
Posted: 2004-10-25 23:09
Reply with quoteEdit/Delete This PostPrint this post
Did i help in any way?

This message was posted from a K500

Access the forum with a mobile phone via esato.mobi