×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    2

    RE: COD downloading error

    I have the same problem with my ASP, can anybody help me pls?
    When i load this file to my 7210, it always generate "unsupported file format" - i already put the MIME type on the server and the wap gateway. TIA

    <%Response.Buffer=True%>

    <%
    Response.ContentType = "text/x-co-desc"
    response.write "COD-Name: test "
    response.write "COD-URL: http://wap.s.com/"
    response.write "COD-Size: 5554"
    response.write "COD-Type: audio/midi"
    response.write "COD-Install-Notify: http://wap.s.com/"
    response.write "COD-Next-URL-at-Error: http://wap.s.com/"
    response.write "COD-Next-URL: http://localhost/cdownload/gencod.wml"
    response.write "COD-Description: "
    response.write "COD-Vendor: test"
    response.write "COD-Price: 2000"

    %>

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    5

    COD downloading error

    Whenever i use this PHP code the ringtone will not download.. Why? I am using 7210

    <?
    Header("Content-Type: text/x-co-desc"
    echo "COD-Name: Name
    COD-URL: http://www.redboss.cz/cz/tones/midi/1.mid
    COD-Install-Notify: http://www.wapstranky.cz/nic.php?file=ok
    COD-Type: audio/midi
    COD-Size: ".Filesize('http://www.redboss.cz/cz/tones/midi/1.mid')."
    COD-Description: Melodie ze stranky www.redboss.cz
    COD-Vendor: RedBoss.cz
    COD-Next-URL: http://wap.redboss.cz
    COD-NextURLatError: http://www.wapstranky.cz/nic.php?file=error";
    ?>

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    202

    RE: COD downloading error

    When I try the PHP script using my own PHP server, I replaced the URL for the .mid file with one that I have on my own content server. The issue I have when trying to use it is that the .Filesize() is returning an error. If I put the filesize in manually for my .mid, the COD works fine.
    Make sure that the .Filesize() is returning the correct size in bytes or else the download will fail.

    Mike Lupo
    Forum Nokia Developer Support

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    5

    RE: COD downloading error

    oh, i get it. That is why it made the error... I think u will try once more...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×