[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
- <!--x-content-type: text/plain -->
- <!--x-date: Mon Nov 15 14:18:18 2004 -->
- <!--x-from-r13: wnfbaqnl ng jbeyqarg.ngg.arg (Xnfba Rnl) -->
- <!--x-message-id: [email protected] -->
- <!--x-reference: [email protected] --> "http://www.w3.org/TR/html4/loose.dtd">
- <!--x-subject: [ale] IO to a web site. -->
- <li><em>date</em>: Mon Nov 15 14:18:18 2004</li>
- <li><em>from</em>: jasonday at worldnet.att.net (Jason Day)</li>
- <li><em>in-reply-to</em>: <<a href="msg00589.html">[email protected]</a>></li>
- <li><em>references</em>: <<a href="msg00589.html">[email protected]</a>></li>
- <li><em>subject</em>: [ale] IO to a web site.</li>
You're using HTTP 1.1, which will use persistent connections, so the
connection won't close after the first get. Also, the server will
typically use a chunked content type, which is more fun to parse. I
*highly* recommend using LWP, but if you really want to roll your own
you'll need to read the HTTP 1.1 RFC in depth:
<a rel="nofollow" href="http://www.w3.org/Protocols/rfc2616/rfc2616.html">http://www.w3.org/Protocols/rfc2616/rfc2616.html</a>.
Another option is to use HTTP 1.0 instead. It is *much* easier to
parse, but I wouldn't recommend using. HTTP 1.1 is required for named
virtual hosts, for one thing, so you might not even be able to use HTTP
1.0. And even if you can, the server you're using might suddenly stop
supporting 1.0 one day (slashdot did this not too long ago; broke a
script I had written).
HTH,
Jason
--
Jason Day jasonday at
<a rel="nofollow" href="http://jasonday.home.att.net">http://jasonday.home.att.net</a> worldnet dot att dot net
"Of course I'm paranoid, everyone is trying to kill me."
-- Weyoun-6, Star Trek: Deep Space 9
</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00589" href="msg00589.html">[ale] IO to a web site.</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Christopher Fowler)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00649.html">[ale] OT: Court tomorrow</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00651.html">[ale] OT: Court tomorrow</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00627.html">[ale] Re: IO to a web site.</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00591.html">[ale] Attic</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00650"><strong>Date</strong></a></li>
<li><a href="threads.html#00650"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>
<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>