Unicom:
6.3.1 download process
For WAP2.0 download services, the implementation process is different from that of wap1.2, for example:
(1) The user uses a terminal to request content to be downloaded.
(2) The CP billing Gateway (WAP platform billing system) does not charge for download requests from terminals.
(3) After the download is complete, the terminal sends a POST request to a fixed billing URL on the CP billing gateway, including the download completion status and download content URL. The terminal then saves the downloaded content to the download folder and prompts the user that the download is successful.
(4) The CP billing gateway charges fees based on the download completion status and download content URL, and can forward the request to the content provider (SP server) through a specific download status forwarding interface.
6.3.2 download tag description
The normal download URL terminal of the content provider (SP server) should be correctly parsed, And the download tag should be expanded in the <a href> tag.
<A href> tag description
Specifies URL and other indispensable information for download. Use HTTP Communication to download data other than image data to the Flash ROM of the terminal.
<A href> tag format
<A href = "Unicom: Download/start? Url = URL [& object = Object]
[& Size = size] [& Title = title] "> </a>
Example:
<A href = "Unicom: Download/start? Url = http % 3A % 2f % 2fwww.sample.com
% 2 fsamplepage % 2fanime_2.pmd & object = animelo & size = 1000 & Title = test "> download </a>
Download http://www.sample.com/samplepage/anime_2.pm.
<A href> parameter description
All parameter names are case-insensitive and the parameter values are case-sensitive. Encode the parameter value. Separate parameters.
Parameter name must be described in the following example:
Unicom: Download/start? Is an extension tag, required. Unicom: Download/start?
A URL is the URL of the downloaded content.
Because the parameter value has already been set to encode, the terminal needs to decode the request before sending it. Url = http % 3A % 2f % 2fwww.sample.com % 2 fsamplepage % 2fanime_2.pmd
The object is the place where the content is used. The terminal should use the object as the basis for downloading.
See the following object description. Object = melody
Audio Content
Title NO content title. Title = title
Size NO content bytes.
If the size is specified, the browser can use a common http get request to download the content. After the download content, check whether the actual download size is the same as the size specified in the parameter. You can also use byte-range to send http get requests. If no size is specified, an http get request should be sent in byte-range mode. Size = 1000
Object Description
The terminal should use the object as the basis for download, and the terminal should use the object as the final judgment basis for the content type. The definition of the object will be expanded in the future.
Content type format extention mimetype
Melody cmx. pMD application/X-PMD
Smaf. MMF application/vnd. smaf
Voice qcelp. qcp audio/vnd. qcelp
Picture BMP. BMP image/BMP
Wbmp. wbmp image/vnd. WAP. wbmp
PNG. PNG Image/PNG
JPEG. jpg image/JPEG
GIF. GIF image/GIF
Animation cmx. pMD application/X-PMD
Smaf. MMF application/vnd. smaf
GIF. GIF image/GIF
Animation + melody cmx. pMD application/X-PMD
Smaf. MMF application/vnd. smaf
Animation + TEXT smaf. MMF application/vnd. smaf
Text cmx. pMD application/X-PMD
Smaf. MMF application/vnd. smaf
Java. Jad text/vnd. Sun. j2-app-Descriptor
Java. Jar application/X-Java-Archive
Java. Jar application/Java
Java. Jar application/Java-Archive
DRM. DM application/vnd. oma. DRM. Message
DRM. DM application/vnd. oma. DRM. Rights + XML
Address card vCard. VCF text/X-vCard
3 D 3D. M3D application/x-micro3d-plugin
6.3.3 download business specifications
For WAP2.0 download business requirements:
(1) The URL corresponding to the downloaded image or ringtone file must contain the billing URL.
(2) You can preview thumbnails or listen to music before downloading. The size of the thumbnail must be no greater than 50 & #215; 50 pixels. The size of the thumbnail must be no longer than 1/2 of that of the whole music. Generally, the size of the thumbnail cannot exceed 5 seconds.
The following uses the "ringtone download" service as an example for browsing services:
The service entry URL is:
Http://wap.demo.com/wap/download/ringtone/index.jsp
The service billing URL is the same as the validation URL, both of which are:
Http://wap.demo.com/wap/download/ringtone/fee/
For example:
Click "Download ringtone" to go to the homepage of the ringtone service. The URL is
Bytes:
Click "Top 10" and the corresponding URL is:
Http://wap.demo.com/wap/download/ringtone/catalog/1.html to enter the "Top Ten Best" corresponding page:
Top 10
Ringtone 1
Ringtone 2
Ringtone 3
Ringtone 4
.........
Back to parent
Back to homepage
OK
Click the "Listen to ringtones" link to enter
Bytes.
Listen to ringtone 1
Online audition .........
.........
Download
Back to parent
Back to homepage
OK
When a user clicks the "ringtone 1" link in "Top 10" or "Download" in "ringtone 1 audition", the user accesses the entire file of ringtone 1, corresponding to the following URL:
Bytes:
You are welcome to order this service. Please select the customization method:
1. per time, 1.0 yuan each time
2. monthly subscription: RMB 5.0 per month
3. Daily package, 1.5 RMB per day
Back to parent
Back to homepage
OK
After you select a billing rule and confirm it, the following page is displayed on the WAP platform:
The WAP platform automatically redirects the user to the page where ringtone 1 is located.
If you have already customized this service, the billing page will not pop up and you will directly access:
Upload (1. Mid file ).
Because the URL contains a billing URL, the WAP platform performs billing.
If you use the wap1.2 terminal to access the "ringtone download" service, the SP server automatically displays the corresponding wap1.2 business display page based on your mobile phone model. For example, when the user uses the wap1.2 terminal to request the home address http://wap.demo.com/wap/download/ringtone/index.jsp of the "ringtone download" service, the SP server automatically displays the wap1.2 page and confirms that the URL and WAP2.0 services remain unchanged.
SP server can also through the redirection method, when the user uses the wap1.2 terminal to request the "ringtone download" Service home address, automatically go to the corresponding wap1.2 business home address, such as: http://wap.demo.com/wap/download/ringtone/wap1/index.jsp. Make sure the URL is modified to the appropriate URL, such as the http://wap.demo.com/wap/download/ringtone/wap1/fee/
For wap1.2 download service billing URL needs to be modified to download successful page corresponding URL address: http://wap.demo.com/wap/download/ringtone/wap1/index.jsp? Dlfstatus = OK. For example:
Note:
(1) The ringtone audition function cannot be provided on the wap1.2 page.
(2) For how to obtain the mobile phone model of the SP server, see the following section.