Re: Content-type for Binary File
- Posted by "Kat" <gertie at visionsix.com> Oct 21, 2004
- 531 views
On 21 Oct 2004, at 13:33, cklester wrote: > > > posted by: cklester <cklester at yahoo.com> > > How would I transfer a file via HTTP using mic's URLMON? > > Right now I can do this: > > if get_file({"library.esp?getlist","library.esp"}) then > if get_file({"getform.esp?rrc_p-1.dot","rrc_p-1.dot"}) then end if > end if > > get_file takes a URL (which is also the filename) -or- a URL and filename > (like above) and saves the download result into the filename. For the > library.esp?getlist URL above, it works fine. But for the .DOT file (which > is a Microsoft Word template), it cuts out at about 28kb, even though the > file is about 400kb. I'm sure it's because I'm using "Content-type: > text/plain;," but I don't know what to use. Use *.* , but i don't think that's the problem. Not all servers care about what content type you say you can accept, and if it did care then it wouldn't send you the first 28K of it. > Is there a better way to retrieve a binary file via HTTP WITHOUT having > to use a third-party software (like LibCurl, etc.)? None that i know of. Kat