Tom's Hardware > Forum > Mobility Networks > Sprint PCS > Question about GCD please read~

Question about GCD please read~

Forum Mobility Networks : Sprint PCS - Question about GCD please read~

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: alt.cellular.sprintpcs (More info?)

 

I`m writing a C++ program for uploading ring tones/images/etc to a
sprint phone. I just want to know some pseudo code on the messages
between the server (sending the file) and the phone. I keep getting
errors...
heres what i got:

For this example we`ll use 127.0.0.1 as the ip, img.jpg as the image,
and 12345 as the file size

>> I type in http://127.0.0.1/img.gcd on the phone
>> Phone sends request to server
>> Server Replies:

Cache-Control: no-cache\n <- is this in the right place? is
no-store better to use?
Content-Type: image/jpeg\n
Content-Name: img.jpg\n
Content-Version: 1.0\n
Content-Vendor: 127.0.0.1\n
Content-URL: http://127.0.0.1/1.jpgn
Content-Size: 12345\n\n

[This is the part im confused on, do i send the file now? or do i need
another header of some sort before starting the send ? ]
>> Server sends img.jpg
[If it works (which i dont know why some times it does) it will just
display the image in the browser - i wont ask me if i want to save it]
>> img.jpg displayed Or Error #506/#406/etc

I can`t figure out whats going wrong, or why the file ( in this case an
image) wont download . Can someone spot the problem ? Thanks a bunch

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Mobility Networks > Sprint PCS > Question about GCD please read~
Go to:

There are 1039 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them