<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>28 jul 2010 kl. 10.32 skrev Valeriya Alex:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello List,<br><br><div>I am using the gambic v4.6.0, and latest blackhole + blackhole-libs and spork from the git</div><div><br>When i run the next code in the bsc repl<br><br><font class="Apple-style-span" face="'Courier New'">(import (std spork/core))<br><br>(define c (spork-serve root: "/spork" ))<br><br>(add-spork c ("one")<br>  `(html<br>    (head<br>     (title "Hello, world!"))<br>    (body<br>     "This is my first web application using Spork :)")))</font><br><br>The browser does not get any response from the localhost:8080/one<br><br><div><font class="Apple-style-span" face="'Courier New'">Safari can’t open the page “http://localhost:8080/one”. The error is: “The operation couldn’t be completed.  (kCFErrorDomainCFNetwork error 303.)” (kCFErrorDomainCFNetwork:303) Please choose Safari > Report Bugs to Apple, note the error number, and describe what you did before you saw this message.</font><br><br>That what happen if i use the telnet<br><br><font class="Apple-style-span" face="'Courier New'">imc:~ valery$ telnet localhost 8080<br>Trying ::1...<br>telnet: connect to address ::1: Connection refused<br>Trying fe80::1...<br>telnet: connect to address fe80::1: Connection refused<br>Trying 127.0.0.1...<br>Connected to localhost.<br>Escape character is '^]'.<br>GET /one<br><?xml version="1.0" encoding="utf-8"?><br><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-">http://www.w3.org/TR/xhtml1/DTD/xhtml1-</a>transitional.dtd"><br><html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>" xml:lang="en" lang="en"><head><title>Hello, world!</title></head><body>This is my first web application using Spork :)</body></html>Connection closed by foreign host.<br>imc:~ valery$ </font><br><br></div><div>We did this test on several computers by different people and browsers. The result is the same. </div><div><br></div><div>Any ideas?</div></div></div></blockquote><br></div><div>Hmm.. I don't remember seeing the problem that you're mentioning. Two things:</div><div><br></div><div>Are you using the code from <a href="http://github.com/pereckerdal/sack">http://github.com/pereckerdal/sack</a> ? That's the "up-to-date" version, although it really isn't very well maintained either.</div><br><div>The telnet example that you give doesn't provide any insight, because you don't provide a valid HTTP request. The server assumes that the client is a pre-HTTP 1.0 client and provides a response without headers. So the response that you see from telnet isn't what the browsers get. You could try</div><div><br></div><div>GET /one HTTP/1.1</div><div>Host: localhost</div><div><br></div><div>instead, which is the minimal valid HTTP request in this case.</div><div><br></div><div>best,</div><div>Per</div><div><br></div></body></html>