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
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.