You need to read and write them with the HTTP headers. Look up (or packet sniff for) the correct format.