<?xml version="1.0" encoding="windows-1252"?>
<node id="945815" title="Re^2: Localhost network interaction in tests" created="2012-01-01 19:32:50" updated="2012-01-01 19:32:50">
<type id="11">
note</type>
<author id="704949">
fullermd</author>
<data>
<field name="doctext">
&lt;blockquote&gt;&lt;p&gt;
&amp;#91;...] Test::HTTP::LocalServer &amp;#91;...] substitute the base URI for accessing the modem to be a file:// URI instead.
&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;
T:HTTP::LocalServer seems to pretty much mirror what I'm doing.  With a bit less hardcoded single-purpose, anyway.
&lt;/p&gt;

&lt;p&gt;
I don't like the idea of going &lt;c&gt;file:///&lt;/c&gt; though, since that means I'd have to add an extra magic hook in the code to say "here, use this fake URL instead", which would defeat a lot of the purpose of running through the code path in the first place.  It would still run the &lt;c&gt;LWP&lt;/c&gt; bits, but the URL construction would be bypassed.  Also doesn't give it the chance to double check that it properly errors on &lt;c&gt;404&lt;/c&gt; as the test currently does either.
&lt;/p&gt;
</field>
<field name="root_node">
945797</field>
<field name="parent_node">
945798</field>
</data>
</node>
