Hi all,
i'm coding something similar to a 'http-server', and i'm having problems with sending files to the client (web browser) from the server. instead of the client getting a Save File download box, it just recieves all the assembly code from the file, it gets printed as html text to the html page instead of downloaded as a file.
I am wondering if there is a string or something that i have to send to the client that lets it know there's a file being sent before i actually send the file contents (bytes)? i've looked through several RFC manuals and i can't find anything related to it, i must of spent at least 2 full days looking for a anwser or some code on google that could help me.. any help would be appreciated, thanks.