I use HTTP-Server compact and I want to make a link to file on uSD memory for user download. Is this possible?[How?]
Thanks.
The only thing a web server needs to do is make sure that the path represented in the request represents either a limited sandbox directory tree in the local file system, or keep a specific file map list of what files may be serviced - just so that the SD card can be allowed to hold other content too without someone accidentally getting access to the extra files on the card.
Are the files large? Can they be sent out in a single chunk?
Thanks. sorry,you are right.I can't explain well.
" into their browser, wouldn't that generate an HTTP GET with a request for "/storage/myFile.zip", which you said you were decoding, right?
"
Surely.
"Can't you use the C string library functions, or navigate the request string?"
I can work with strings and strings library and have some experience in it. I can't navigate the request to my file.
Its that I need to know(step by step):
*1- How can I access to requested string? 2- I will process the string and there is no problem in this step. *3- How Can I navigate analyzed string to my file?
"Are the files large? Can they be sent out in a single chunk?"
Yes.About 10 MB and always in changing and not fitted to single chunk.
sorry again for bad explanation.
I must tell something,I can't find "complete request string" in MDK-ARM webServer compact library. some functions called by this libray and programmers have to use this callBack functions to analyze POST or GET or complete cgi operations.
You mean, how do you access the Request string; ie, what the client sent to your server?
eg, the HTTP GET with a request for "/storage/myFile.zip"
That should be covered in the server documentation - if not, contact Keil support.
"3- How Can I navigate analyzed string to my file?"
The same way you'd navigate to the file if the request came from any other source!
Does this help: http://www.keil.com/forum/10244/ - specifically Franc Urbanc's Post of 26-Jul-2007 06:38 GMT