Re: Tclhttpd: unable to serve .swf files?



On 2010-06-16 18:21:53 +0200, tom.rmadilo said:

On Jun 16, 8:37 am, Giorgio Valoti <giorgi...@xxxxxx> wrote:
Hi all,
I’m getting a very weird bug(?) with tclhttpd.

On Mac OS X, I’ve unwrapped the latest tclhttpd starkit distribution
and replaced the htdocs directory with mine; wrapped everything and
copied it onto a Win XP box. If I try to download a .swf file nothing
happens: tclhttp is still responsive but the request just hangs there.
However, if I start it with the -docRoot flag everything works as
expected!

On Mac OS X works correctly, either using the starkit docroot or an
external one. Every other file type (text, movies) are served correctly
regardless the OS and the docroot used.

I’m banging my head against the wall... Does anyone have any suggestion?

Not an expert on tclhttpd, but a few questions:

* Can you use wget/curl to download a fake .swf file, a real .swf
file?

I’ve used curl with the real .swf and it hangs after having received the headers.

* or Is the problem that an .swf application cannot access the .swf
file?
* What is wrong with using the -docRoot flag if this makes everything
work?

According to the requirements the final app should be distributed as a starpack, so everything should be self-contained.


Some web servers use OS based mapping files to serve content, it is
possible that XP doesn't have the correct mapping, or the file is
missing or doesn't exist on XP, or your particular OS installation. (I
know some perl scripts do this).


Since starkits use vfs this shouldn’t be a problem. Also, this would explain why using a regular directory with -docRoot doesn’t show any problem.

--
Giorgio Valoti

.



Relevant Pages

  • ANNOUNCE: tclhttpd 3.5.1 Tcl Web Server
    ... I have uploaded the 3.5.1 release of TclHttpd to SourceForge ... web server or as an application platform so you ... I did recently went into spiffing up the sample document tree to try ... This release includes a Starkit distribution, ...
    (comp.lang.tcl)
  • Re: ANNOUNCE: tclhttpd 3.5.1 Tcl Web Server
    ... starkit, can you still serve pages for some files that are outside the ... > I have uploaded the 3.5.1 release of TclHttpd to SourceForge ... > server is to start the server with the sample htdocs and read about it: ... > I did recently went into spiffing up the sample document tree to try ...
    (comp.lang.tcl)
  • Re: Tclhttpd: unable to serve .swf files?
    ... I’m getting a very weird bugwith tclhttpd. ... and replaced the htdocs directory with mine; ... Also: what are the headers? ... Some clients peek at the content, ...
    (comp.lang.tcl)
  • Re: ANNOUNCE: tclhttpd 3.5.1 Tcl Web Server
    ... >> starkit, can you still serve pages for some files that are outside the ... > tclhttpd is to root the documents outside the tclhttpd starkit, ... tclhttpd3.5.1.kit has a sample document tree inside it that contains ... You can easily unpack the startkit with sdx unwrap, ...
    (comp.lang.tcl)
  • Re: Tclhttpd: unable to serve .swf files?
    ... I’m getting a very weird bugwith tclhttpd. ... On Mac OS X, I’ve unwrapped the latest tclhttpd starkit distribution ... Can you use wget/curl to download a fake .swf file, ...
    (comp.lang.tcl)