Mobile Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreMobile Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 15th, 2008, 07:02 AM
AlexG.NET AlexG.NET is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 2 AlexG.NET User rank is Corporal (100 - 500 Reputation Level)AlexG.NET User rank is Corporal (100 - 500 Reputation Level)AlexG.NET User rank is Corporal (100 - 500 Reputation Level)AlexG.NET User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 45 m 5 sec
Reputation Power: 0
SERVER - Incorrect filename when streaming from server script

Hello,

I'm bringing up an old problem as I see on these forums (and still no solution). I have an application that is supposed to let users download mobile content (ringtones, games) by following a link provided to their handset with a WAP Push.

Until now, I haven't been able to figure out a secure solution for this, as the only way the mobile browser will save a correct filename is by linking the resource directly on the server.

Seems all mobile browsers completely ignore the Content-Disposition header; any alternate solutions, such as providing a fake url to a non-existent .mp3 (that's being rewritten by an ISAPI module) also have failed.

Did anyone find a way to seamlessly stream content from a server script to a mobile handset ?

Reply With Quote
  #2  
Old January 15th, 2008, 10:26 AM
AlexG.NET AlexG.NET is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 2 AlexG.NET User rank is Corporal (100 - 500 Reputation Level)AlexG.NET User rank is Corporal (100 - 500 Reputation Level)AlexG.NET User rank is Corporal (100 - 500 Reputation Level)AlexG.NET User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 45 m 5 sec
Reputation Power: 0
Ok, I may have a solution. For those using .NET:

You need to create a custom HTTP handler (IHttpHandler interface) and associate it with .mp3 extension (for example). Every request that references an .mp3 file will go through this handler EVEN if the file in the requested URL does not exist!

For example if you launch the URL w w w.example.c o m / r i n g. m p 3 you can intercept this request and tamper with it in the above handler, do some operations, like authentication and so on, then stream the file back to the client. The file can be in another location altogether, for example "~/content/mp3s/ring.mp3". That's just an URL coming from the client, with which you can play any way you like, then send some binary content back (plenty of articles about this one on the net) completely transparent to the client, who will think is actually downloading from the requested location.

I've tested this with a few downloads and works like charm so far. Good luck to everybody.
Comments on this post
jabba_29 agrees: Welcome to the Shed and thanks for posting a solution!!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreMobile Programming > SERVER - Incorrect filename when streaming from server script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT