View Full Version : GCD files
sbendarag
06-19-2006, 02:56 PM
I have created a GCD file and png file accroding to specificaitons and have Set Cache-Control: no-transform on the websites HTTP header, The webserver is IIS. But the phones are failing to download files with 904 error. Has someone faced this issue?
Any help is greatly appreciated.
Thanks,
Sunil
laursifer
06-19-2006, 03:49 PM
Here's an example of a GCD file for an image.
Content-Type: image/jpeg
Content-Name: nin | atlantic city 02
Content-Version: 1.0
Content-Vendor: laursifer.com
Content-URL: http://dontyouwish/acity_02.jpg
Content-Size: 32292
Basically what that 904 error means is the "Content-Size" line does not match the size of the file you're downloading. You need to grab that size in bytes. When you right-click on an image and select Properties you have Size and Size on Disk. You need to use the 'Size' in bytes.
sbendarag
06-19-2006, 03:57 PM
This is how my GCD file looks
Content-Type: image/png
Content-Name: MarisaMill29524
Content-Version: 1.0
Content-Vendor: AGInteractive
Content-URL: http://sitetodownload/MarisaMil.png
Content-Size: 115129
I am settingthe file size to be the one shown next to Size on the file properties in bytes. I am also setting Cache-Control to no=transform. but I am still getting the 904 error.
Thanks,
Sunil
laursifer
06-19-2006, 05:31 PM
Have you tried writing it in WML and saving the page as a php file? That way, you don't have to mess with all that header crap. Also, for kicks, try saving the file as a JPEG, modifying your GCD as needed, and see if that solves your problem. It may be that, for some odd reason, your IIS server doesn't have the PNG MIME type set. In which case, you'd just need to add that and you should be good to go.
However, none of that really explains a 904 error, because 904 is pretty much directly related to the size of your file and the size you have in the GCD.
sbendarag
06-20-2006, 08:51 AM
I had tried converting the file to JPEG that didnt work, but when I tried GIF it worked on some of the phones. I checked the IIS for PNG mime type. it seems to be there.
I am using asp.net for this site. Could you explain a little more on how we can write to wml and save as php?
Thanks for your help.
laursifer
06-20-2006, 09:29 AM
It's actually pretty effortless.
<wml>
<card id="HOME" title="176x220">
<p>
</p>
<p>
<b>NIN</b>
<br/>
nin_albuquerque 01 [<a href="http://blahblahblah/albuquerque_01.jpg">P</a>] [<a href="http://blahblahblah/albuquerque_01.gcd">D</a>]
<br/>
<br/>
</p>
</card>
</wml>
That's just a really basic example. If you look at that page live, it appears with the image title (nin_albuquerque 01) with a P and a D beside it. The P link takes you to a preview of the image and the D link downloads it.
I just write code in Notepad, so all I do to save as PHP is File, Save As and use something like "screensavers.php" as my filename.
For more comprehensive information on writing WML, check out this site:
http://www.w3schools.com/wap/default.asp
sbendarag
06-20-2006, 11:01 AM
I tried the wml way with the link to the GCD file. but I am having the same issue. The phone starts the download process and it suddenly stops with 904 error. Could this be an IIS issue? may be it is not sending the right header. Even though I am setting it? or could this be a sprint issue..
Thanks for your help
laursifer
06-20-2006, 11:12 AM
See, I've got sites on both IIS and Apache, and both of my sites run just fine. I don't do ANYTHING with headers, because that's just bad news. It's just weird that it's sending you a 904 error, because that's a problem it's getting from your GCD regarding file size. That's all a 904 ever means, at least in our experience here on SU. 904 is "content size mis-match."
sbendarag
06-20-2006, 11:25 AM
We were having this 904 error before and then I fouind this link http://forum.rumkin.com/index.php?action=vthread&forum=2&topic=275 which talks about the same issue and one of the posts says.
"Sprint changed their gateway to a new package due to the EVDO rollout + nextel!
All that you have to do is specify:
Cache-Control: no-transform
"
This had fixed our problems till an automatic windows update was applied to our server.
Not sure why this would happen.....
laursifer
06-20-2006, 11:33 AM
Yeesh... yeah, that change was from a while ago, and it really only seemed to effect uploaders, not WAP pages. So I don't think it has anything at all to do with that but I could be wrong. Sprint's caching is insane anyway.
We don't do automatic Windows Updates to our servers for that exact reason though. Always screws up stuff. Let me look into it some more and see what I can find. Can you get me any information on that auto-update?
We WILL figure this out.
sbendarag
06-20-2006, 11:43 AM
These were the updates that were installed..
Windows Server 2003 Windows Malicious Software Removal Tool - June 2006 (KB890830) Wednesday, June 14, 2006 Automatic Updates
Windows Server 2003 Security Update for Windows Server 2003 (KB918439) Wednesday, June 14, 2006 Automatic Updates
Windows Server 2003 Cumulative Security Update for Internet Explorer for Windows Server 2003 (KB916281) Wednesday, June 14, 2006 Automatic Updates
Windows Server 2003 Security Update for Windows Server 2003 (KB917953) Wednesday, June 14, 2006 Automatic Updates
Windows Server 2003 Security Update for Windows Server 2003 (KB914389) Wednesday, June 14, 2006 Automatic Updates
Windows Server 2003 Security Update for Windows Server 2003 (KB911280) Wednesday, June 14, 2006 Automatic Updates
Windows Server 2003 Security Update for Windows Server 2003 (KB917344) Wednesday, June 14, 2006 Automatic Updates
Windows Server 2003 Security Update for Windows Server 2003 (KB917734) Wednesday, June 14, 2006 Automatic Updates
Thanks
sbendarag
06-20-2006, 11:48 AM
From our site we allow sprint users to download content using GCD files, it is not a WAP site. We have 3 environments Dev, Stage and Live. If the content link from the GCD file is to a file on the Live server it works fine, but if the link is to file on the Dev box, it doesnt work.....
Thanks for your help ...
laursifer
06-20-2006, 02:28 PM
Hmmm... is there any way for you to view the data packets being sent on that dev server? From the sounds of it, it's a security issue (as if the server is blocking it mid-transmission, which is odd). If you could view those data packets, you could probably find where it's getting hung up and spitting that error back at you. Dev servers are tricky little beasts, though. Is there a reason you're wanting to keep it on a dev server?
sbendarag
06-20-2006, 02:35 PM
I am not sure of how to check the data packets going out from the server.. Is there any software that will help me do that? The reason we have these environments is that we develop our applications on Dev and then after completion of development we move it stage where it gets tested and finally after testing is done the changes are moved to live boxes from which users can start using the new changes.
laursifer
06-20-2006, 02:45 PM
Yeah, I understand that... it's just that it seems to be the dev server that's the problem. I understand wanting to get it fixed so you can continue to test it on the dev server, but for a project this small I would just move ahead to your production or live server from here, since you say it works on that. I think it's more trouble than it's worth to figure out what's FUBAR-ing things on your dev server. That's just me. I am sorry we couldn't nail this one on the head, but it's a pretty unique problem and I think the only way you're going to solve it is to REALLY get your hands inside that dev server (which I've done before, and it sucks).
I don't know of programs or anything to let you see all the data transmissions... I have a programmer who works on the dev server I work on, and he gets me all that junk with his smart programmy brain. Hard part is sifting through it.
Best of luck to you, and I'm sorry again I wasn't much help :indiff:
SprintUsers.com was created in January 2002 as a resource for users of Sprint PCS products and services to learn about and share information. We have cll phone reviews, Cellular Accessories, Downloads, PDA reviews, Ringtones, all of the latest Sprint PCS news and information, an area where you can find help in creating a ring tone or custom image for you phone, and so much more. The most popular section is the message board where visitors can read and write messages, ask questions, and get advice about their cellular phone from other users.
Content Copyright © 2002-2007 SprintUsers
vBulletin® v3.8.3, Copyright ©2000-2009, Jelsoft Enterprises Ltd.