Path: csiph.com!weretis.net!feeder8.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Frank Kozuschnik Newsgroups: comp.lang.javascript Subject: Re: IIS http.open "GET" error Date: Thu, 8 Oct 2020 10:38:01 +0200 Organization: solani.org Message-ID: References: <70aa8941-dbc7-4277-a7f2-a2f1cbd63ab2o@googlegroups.com> <1b936f13-60b8-4c71-8e9c-cf3f55ac95aeo@googlegroups.com> <5a99baa7-f3dc-4cc7-9551-5a413e1e3105o@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Thu, 8 Oct 2020 08:38:01 -0000 (UTC) Injection-Info: solani.org; logging-data="4286"; mail-complaints-to="abuse@news.solani.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 X-User-ID: eJwFwYEBwCAIA7CXcLRAz2Eq/59gQo8VOxEMcDjfeKEd2j9xVo76+hES7CKuOc2CamKqpQcPXhBY In-Reply-To: Cancel-Lock: sha1:pu7QuijATGXz3WHegG6kl9LbMP8= Xref: csiph.com comp.lang.javascript:38913 Jonas Thörnvall: > Julio Di Egidio: > >>> Jonas Thörnvall: >>> >>>> Well i changed the extension to TXT and it now works, do anyone >>>> know where to set the allowed extensions to download in IIS? >> >> >> >> (Don't look at the sample code, just follow the how-to section...) > > Thanks Julio, unfortunately it must be something more then set the > mimetype to plain/text to allow the extension for HTTP GET in IIS > server. It is no problem for me to use TXT as extension for the > chessgame autoloaded, but i was just curious howto allow my new > extension to be downloaded from server. Did you try Julio's suggestion? If the file name suffix ("extension") does not exist in the "MIME Types" list, IIS does not serve the file to clients and will return a HTTP 404 error instead. To make IIS serve the file, you have to add its suffix to the "MIME Types" list ( element in the configuration file). The actual MIME type that you enter does not matter for the purpose of allowing the download (it will be returned in the HTTP Content-Type header).