Dear Amos,
I ran "cat out.telnet |telnet mysquid 3128", Of course new telnet
program doesn't to need insert '^]' to head of out.telnet, but a few
older needed.
I attached out.telnet, it contains a html file that i wanna insert to
squid cahche. Would you please correct my headers?
Yours,
Mohsen
On Sun, 2011-07-03 at 13:23 +1200, Amos Jeffries wrote:
> On 03/07/11 00:13, Mohsen Pahlevanzadeh wrote:
> > Dear list,
> > When you use GET, you receive following headers before html file:
> > HTTP/1.1 200 OK
> > Date: Mon, 23 May 2005 22:38:34 GMT
> > Server: Apache/1.3.3.7 (Unix) (Red-Hat/Linux)
> > Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT
> > Etag: "3f80f-1b6-3e1cb03b"
> > Accept-Ranges: bytes
> > Content-Length: 438
> > Connection: close
> > Content-Type: text/html; charset=UTF-8
> > ---------
>
> Yes that is a reply.
>
> > Now, if you focus in above lines you don't see hostname and domain or
> > url....It' my problem.I send above lines along with html file to
> > squid:3128 but squid doesn't find out hostname or domain or url....
> > Do you have solution?
>
> Pass the _GET_ itself through squid:3128.
>
> The reply details (above) come back _from_ Squid it should then be
> freshly cached. The reply your app gets out of Squid can be discarded,
> or the status used to conform the object exists/failed.
>
> Amos
GET / HTTP/1.0
Host: yahoo.com
HTTP/1.1 200 OK
Date: Mon, 23 May 2005 22:38:34 GMT
Server: Apache/1.3.3.7 (Unix) (Red-Hat/Linux)
Last-Modified: Wed, 08 Jan 2003 23:11:55 GMT
Etag: "3f80f-1b6-3e1cb03b"
Accept-Ranges: bytes
Content-Length: 19499
Connection: close
Content-Type: text/html; charset=UTF-8
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0027)http://wiki.qemu.org/Manual -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="generator" content="MediaWiki 1.15.1">
<meta name="keywords" content="Manual,Documentation/9psetup,Documentation/CreateSnapshot,Documentation/Debugging,Documentation/GettingStartedDevelopers,Documentation/HardwareManuals,Documentation/ISAManuals,Documentation/Networking,Documentation/Platforms/PC,KQEMU,KQemu/Doc">
<link rel="shortcut icon" href="http://wiki.qemu.org/favicon.ico">
<link rel="search" type="application/opensearchdescription+xml" href="http://wiki.qemu.org/opensearch_desc.php" title="QEMU (en)">
<link title="Creative Commons" type="application/rdf+xml" href="http://wiki.qemu.org/index.php?title=Manual&action=creativecommons" rel="meta">
<link rel="copyright" href="http://www.gnu.org/licenses/old-licenses/fdl-1.2.txt">
<link rel="alternate" type="application/rss+xml" title="QEMU RSS Feed" href="http://wiki.qemu.org/index.php?title=Special:RecentChanges&feed=rss">
<link rel="alternate" type="application/atom+xml" title="QEMU Atom Feed" href="http://wiki.qemu.org/index.php?title=Special:RecentChanges&feed=atom">
<title>Manual - QEMU</title>
<link rel="stylesheet" href="./Manual - QEMU_files/shared.css" type="text/css" media="screen">
<link rel="stylesheet" href="./Manual - QEMU_files/commonPrint.css" type="text/css" media="print">
<link rel="stylesheet" href="./Manual - QEMU_files/index.php" type="text/css">
<link rel="stylesheet" href="./Manual - QEMU_files/index(1).php" type="text/css" media="print">
<link rel="stylesheet" href="./Manual - QEMU_files/index(2).php" type="text/css">
<link rel="stylesheet" href="./Manual - QEMU_files/index(3).php" type="text/css">
<!--[if lt IE 5.5000]><style type="text/css">@import "/skins/cavendish/IE50Fixes.css?207";</style><![endif]-->
<!--[if IE 5.5000]><style type="text/css">@import "/skins/cavendish/IE55Fixes.css?207";</style><![endif]-->
<!--[if IE 6]><style type="text/css">@import "/skins/cavendish/IE60Fixes.css?207";</style><![endif]-->
<!--[if IE 7]><style type="text/css">@import "/skins/cavendish/IE70Fixes.css?207";</style><![endif]-->
<!--[if lt IE 7]>
<script type="text/javascript" src="/skins/common/IEFixes.js?207"></script>
<meta http-equiv="imagetoolbar" content="no" />
<![endif]-->
<script type="text/javascript">/*<![CDATA[*/
var skin = "cavendish";
var stylepath = "/skins";
var wgArticlePath = "/$1";
var wgScriptPath = "";
var wgScript = "/index.php";
var wgVariantArticlePath = false;
var wgActionPaths = {};
var wgServer = "http://wiki.qemu.org";
var wgCanonicalNamespace = "";
var wgCanonicalSpecialPageName = false;
var wgNamespaceNumber = 0;
var wgPageName = "Manual";
var wgTitle = "Manual";
var wgAction = "view";
var wgArticleId = "9";
var wgIsArticle = true;
var wgUserName = null;
var wgUserGroups = null;
var wgUserLanguage = "en";
var wgContentLanguage = "en";
var wgBreakFrames = false;
var wgCurRevisionId = 1097;
var wgVersion = "1.15.1";
var wgEnableAPI = true;
var wgEnableWriteAPI = true;
var wgSeparatorTransformTable = ["", ""];
var wgDigitTransformTable = ["", ""];
var wgRestrictionEdit = [];
var wgRestrictionMove = [];
/*]]>*/</script><mytubeelement id="myTubeElement" desktopnotification="true" soundnotification="true" enable="true" loop="false" hidepopup="false" autoplay="false" autobuffer="false" autoplayonbuffer="false" autoplayonbufferpercentage="42" autoplayonsmartbuffer="true" quality="default" fshd="false" onlynotification="false" enablefullscreen="true" savebandwidth="false"><bundle label_delimitor=":" percentage="%" smart_buffer="Smart Buffer" start_playing_when_buffered="Start playing when buffered" sound="Sound" desktop_notification="Desktop Notification" continuation_on_next_line="-" loop="Loop" only_notify="Only Notify" estimated_time="Estimated Time" global_preferences="Global Preferences" no_notification_supported_on_your_browser="No notification style supported on your browser version" video_buffered="Video Buffered" buffered="Buffered" hyphen="-" buffered_message="The video has been buffered as requested and is ready to play." not_supported="Not Supported" on="On" off="Off" click_to_enable_for_this_site="Click to enable for this site" desktop_notification_denied="You have denied permission for desktop notification for this site" notification_status_delimitor=";" error="Error" adblock_interferance_message="Adblock (or similar extension) is known to interfere with SmartVideo. Please add this url to adblock whitelist." calculating="Calculating" waiting="Waiting" will_start_buffering_when_initialized="Will start buffering when initialized" will_start_playing_when_initialized="Will start playing when initialized" completed="Completed" stopped="Stopped" hr="Hr" min="Min" sec="Sec" any_moment="Any Moment" extension_id="lnkdbjbjpnpjeciipoaflmpcddinpjjp"></bundle></mytubeelement>
<script type="text/javascript" src="./Manual - QEMU_files/wikibits.js"><!-- wikibits js --></script><style type="text/css">@import "/skins/cavendish/KHTMLFixes.css";</style>
<!-- Head Scripts -->
<script type="text/javascript" src="./Manual - QEMU_files/ajax.js"></script>
<!-- site js -->
<script type="text/javascript" src="./Manual - QEMU_files/index(4).php"><!-- site js --></script>
<!-- should appear here -->
<style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "/skins/cavendish/main.css"; /*]]>*/</style>
<style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "/skins/cavendish/extensions.css"; /*]]>*/</style>
<style media="print" type="text/css">/*<![CDATA[*/ @import "/skins/cavendish/print.css"; /*]]>*/</style>
<link rel="stylesheet" type="text/css" media="print" href="./Manual - QEMU_files/commonPrint(1).css">
<script type="text/javascript" src="./Manual - QEMU_files/wikibits(1).js"></script><style type="text/css">@import "/skins/cavendish/KHTMLFixes.css";</style>
</head><script src="chrome-extension://lnkdbjbjpnpjeciipoaflmpcddinpjjp/mytube.js"></script><link href="chrome-extension://lnkdbjbjpnpjeciipoaflmpcddinpjjp/mytube.css" rel="stylesheet" type="text/css">
<body class="mediawiki ltr ns-0 ns-subject page-Manual skin-cavendish">
<div id="internal"></div>
<div id="container">
<div id="p-personal">
<ul class="top-nav">
<li class="top-nav-element">
<span class="top-nav-left"> </span>
<a class="top-nav-mid" href="http://wiki.qemu.org/index.php?title=Special:UserLogin&returnto=Manual">Log in / create account</a>
<span class="top-nav-right"> </span>
</li>
</ul>
</div>
<div id="header">
<a name="top" id="contentTop"></a>
<h6>
<a href="http://wiki.qemu.org/Main_Page" title="Main Page">Manual - QEMU</a></h6>
<ul>
<li class="selected">Page</li><li>Discussion</li><li>View source</li><li>History</li> </ul>
<form name="searchform" action="http://wiki.qemu.org/index.php" id="searchform">
<div>
<label for="searchInput">Search</label>
<input type="hidden" name="title" value="Special:Search">
<input id="searchInput" name="search" type="text" title="Search QEMU [ctrl-alt-f]" accesskey="f" value="">
<input type="submit" name="go" class="searchButton" id="searchGoButton" value="Go" title="Go to a page with this exact name if exists">
<input type="submit" name="fulltext" class="searchButton" id="mw-searchButton" value="Search" title="Search the pages for this text">
</div>
</form>
</div>
<div id="mBody">
<div id="side">
<ul id="nav">
<li class="generated-sidebar portlet" id="p-About">
<span>About</span>
<ul class="pBody">
<li id="n-Home">Home</li>
</ul>
</li>
<li class="generated-sidebar portlet" id="p-Get">
<span>Get</span>
<ul class="pBody">
<li id="n-Download">Download</li>
</ul>
</li>
<li class="generated-sidebar portlet" id="p-Contribute">
<span>Contribute</span>
<ul class="pBody">
<li id="n-Start-Here">Start Here</li>
<li id="n-Report-a-Bug">Report a Bug</li>
<li id="n-Submit-a-Patch">Submit a Patch</li>
<li id="n-Mailing-Lists">Mailing Lists</li>
</ul>
</li>
<li class="generated-sidebar portlet" id="p-Virtualize">
<span>Virtualize</span>
<ul class="pBody">
<li id="n-KVM">KVM</li>
</ul>
</li>
<li class="generated-sidebar portlet" id="p-Learn">
<span>Learn</span>
<ul class="pBody">
<li id="n-Documentation">Documentation</li>
<li id="n-Links">Links</li>
<li id="n-License">License</li>
</ul>
</li>
<li class="portlet" id="p-tb">
<span>Toolbox</span>
<ul class="pBody">
<li id="t-whatlinkshere">What links here</li>
<li id="t-recentchangeslinked">Related changes</li>
<li id="t-specialpages">Special pages</li>
</ul>
</li>
</ul>
</div><!-- end of SIDE div -->
<div id="bodyContent">
<h1>Manual</h1>
<h3 id="siteSub">From QEMU</h3>
<div id="contentSub"></div>
<!-- start content -->
<table id="toc" class="toc" summary="Contents"><tbody><tr><td><div id="toctitle"><h2>Contents</h2> <span class="toctoggle">[<a id="togglelink" class="internal" href="javascript:toggleToc()">hide</a>]</span></div>
<ul>
<li class="toclevel-1">1 Startup</li>
<li class="toclevel-1">2 How do I...</li>
<li class="toclevel-1">3 User Documentation</li>
<li class="toclevel-1">4 Technical Documentation</li>
</ul>
</td></tr></tbody></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
<a name="Startup" id="Startup"></a><h2> <span class="mw-headline"> Startup </span></h2>
<ul><li> QEMU crash course
</li><li> QEMU documentation on wikibooks.org
</li><li> QEMU-Buch / QEMU-Book - a quite versatile book on qemu, provided in German and English (partly as a google translation), its describing e.g. lots of guests and hosts
</li></ul>
<a name="How_do_I..." id="How_do_I..."></a><h2> <span class="mw-headline"> How do I... </span></h2>
<p><i>for users</i>
</p>
<ul><li> Set up Networking
</li><li> Setting up VirtFS (9P Sharing over Virtio) between the guest and host
</li><li> Create a Snapshot
</li><li> Ubuntu Development Ports - details on qemu-<arch> usage, chroot set up, system emulation and cross compilation
</li><li> Compiling with qemu-user chroot - details on tuning binfmt_misc with magic patterns for making alien binaries run from the shell with silent invocation of QEMU
</li></ul>
<p><i>for users that target for a specific platform</i>
</p>
<ul><li> Debian on an emulated ARM machine based upon some Debian Linux host (see here for the probably most current images matching this HowTo)
</li><li> Debian on an emulated MIPS(EL) machine based upon some Debian Linux host
</li><li> Debian on an emulated SPARC machine based upon some Debian Linux host
</li><li> Windows XP on QEMU-x86 based upon some Linux host (brief but good hints on the guest set up)
</li><li> FreeDos on QEMU-x86 based upon some Linux host (concentrates on host details)
</li><li> QEMU in Embedded Linux Development - Virtual Development Board
</li></ul>
<p><i>for developers</i>
</p>
<ul><li> Debug QEMU
</li><li> Getting Started for Developers
</li></ul>
<a name="User_Documentation" id="User_Documentation"></a><h2> <span class="mw-headline"> User Documentation </span></h2>
<ul><li> QEMU Emulator User Documentation (HTML generated from QEMU sources, updated frequently)
</li><li> Older version of the above (from QEMU 0.12.0 release)
</li><li> QEMU Accelerator User Documentation (KQEMU, obsolete)
</li><li> QEMU Official OS Support List (includes images)
</li></ul>
<a name="Technical_Documentation" id="Technical_Documentation"></a><h2> <span class="mw-headline"> Technical Documentation </span></h2>
<ul><li> QEMU Internals (HTML generated from QEMU sources, updated frequently)
</li><li> QEMU, a Fast and Portable Dynamic Translator, USENIX 2005 Annual Technical Conference, FREENIX Track (NB: dyngen is obsolete and has been replaced by TCG)
</li><li> The QCOW Image Format
</li><li> Hardware Manuals
</li><li> Instruction Set Manuals (Assembly Language)
</li><li> PC Platform
</li></ul>
<!--
NewPP limit report
Preprocessor node count: 5/1000000
Post-expand include size: 0/2097152 bytes
Template argument size: 0/2097152 bytes
Expensive parser function count: 0/100
-->
<!-- Saved in parser cache with key wikidb:pcache:idhash:9-0!1!0!!en!2!edit=0 and timestamp 20110630040516 -->
<div class="printfooter">
Retrieved from "http://wiki.qemu.org/Manual"</div>
<!-- end content -->
</div><!-- end of MAINCONTENT div -->
</div><!-- end of MBODY div -->
<div class="visualClear"></div>
<div id="footer"><table><tbody><tr><td align="left" width="1%" nowrap="nowrap">
<div id="f-copyrightico"></div></td><td align="center">
<ul id="f-list">
<li id="f-copyright">Content is available under GNU Free Documentation License 1.2.<br>
QEMU is a trademark of Fabrice Bellard.<br>
Hosting generously provided by Tile Networks.</li>
</ul></td><td align="right" width="1%" nowrap="nowrap"><div id="f-poweredbyico"></div></td></tr></tbody></table>
</div><!-- end of the FOOTER div -->
</div><!-- end of the CONTAINER div -->
<script type="text/javascript">if (window.runOnloadHook) runOnloadHook();</script>
<!-- Served in 0.196 secs. -->
</body></html>
This archive was generated by hypermail 2.2.0 : Sun Jul 03 2011 - 12:00:01 MDT