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"><a href="./Manual - QEMU_files/Manual - QEMU.html">Page</a></li><li><a href="http://wiki.qemu.org/Talk:Manual">Discussion</a></li><li><a href="http://wiki.qemu.org/index.php?title=Manual&action=edit">View source</a></li><li><a href="http://wiki.qemu.org/index.php?title=Manual&action=history">History</a></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"><a href="http://wiki.qemu.org/Main_Page">Home</a></li> </ul> </li> <li class="generated-sidebar portlet" id="p-Get"> <span>Get</span> <ul class="pBody"> <li id="n-Download"><a href="http://wiki.qemu.org/Download">Download</a></li> </ul> </li> <li class="generated-sidebar portlet" id="p-Contribute"> <span>Contribute</span> <ul class="pBody"> <li id="n-Start-Here"><a href="http://wiki.qemu.org/Contribute/StartHere">Start Here</a></li> <li id="n-Report-a-Bug"><a href="http://wiki.qemu.org/Contribute/ReportABug">Report a Bug</a></li> <li id="n-Submit-a-Patch"><a href="http://wiki.qemu.org/Contribute/SubmitAPatch">Submit a Patch</a></li> <li id="n-Mailing-Lists"><a href="http://wiki.qemu.org/MailingLists">Mailing Lists</a></li> </ul> </li> <li class="generated-sidebar portlet" id="p-Virtualize"> <span>Virtualize</span> <ul class="pBody"> <li id="n-KVM"><a href="http://wiki.qemu.org/KVM">KVM</a></li> </ul> </li> <li class="generated-sidebar portlet" id="p-Learn"> <span>Learn</span> <ul class="pBody"> <li id="n-Documentation"><a href="./Manual - QEMU_files/Manual - QEMU.html">Documentation</a></li> <li id="n-Links"><a href="http://wiki.qemu.org/Links">Links</a></li> <li id="n-License"><a href="http://wiki.qemu.org/License">License</a></li> </ul> </li> <li class="portlet" id="p-tb"> <span>Toolbox</span> <ul class="pBody"> <li id="t-whatlinkshere"><a href="http://wiki.qemu.org/Special:WhatLinksHere/Manual" title="List of all wiki pages that link here [j]" accesskey="j">What links here</a></li> <li id="t-recentchangeslinked"><a href="http://wiki.qemu.org/Special:RecentChangesLinked/Manual" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li> <li id="t-specialpages"><a href="http://wiki.qemu.org/Special:SpecialPages" title="List of all special pages [q]" accesskey="q">Special pages</a></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"><a href="http://wiki.qemu.org/Manual#Startup"><span class="tocnumber">1</span> <span class="toctext">Startup</span></a></li> <li class="toclevel-1"><a href="http://wiki.qemu.org/Manual#How_do_I..."><span class="tocnumber">2</span> <span class="toctext">How do I...</span></a></li> <li class="toclevel-1"><a href="http://wiki.qemu.org/Manual#User_Documentation"><span class="tocnumber">3</span> <span class="toctext">User Documentation</span></a></li> <li class="toclevel-1"><a href="http://wiki.qemu.org/Manual#Technical_Documentation"><span class="tocnumber">4</span> <span class="toctext">Technical Documentation</span></a></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> <a href="http://www.crashcourse.ca/wiki/index.php/QEMU" class="external text" title="http://www.crashcourse.ca/wiki/index.php/QEMU" rel="nofollow">QEMU crash course</a> </li><li> <a href="http://en.wikibooks.org/wiki/QEMU" class="external text" title="http://en.wikibooks.org/wiki/QEMU" rel="nofollow">QEMU documentation</a> on wikibooks.org </li><li> <a href="http://qemu-buch.de/" class="external text" title="http://qemu-buch.de/" rel="nofollow">QEMU-Buch / QEMU-Book</a> - 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> <a href="http://wiki.qemu.org/Documentation/Networking" title="Documentation/Networking">Set up Networking</a> </li><li> <a href="http://wiki.qemu.org/Documentation/9psetup" title="Documentation/9psetup">Setting up VirtFS (9P Sharing over Virtio) between the guest and host</a> </li><li> <a href="http://wiki.qemu.org/Documentation/CreateSnapshot" title="Documentation/CreateSnapshot">Create a Snapshot</a> </li><li> <a href="https://wiki.edubuntu.org/UbuntuDevelopment/Ports" class="external text" title="https://wiki.edubuntu.org/UbuntuDevelopment/Ports" rel="nofollow">Ubuntu Development Ports</a> - details on qemu-<arch> usage, chroot set up, system emulation and cross compilation </li><li> <a href="http://www.gentoo.org/proj/en/base/embedded/handbook/index.xml?part=1&chap=5" class="external text" title="http://www.gentoo.org/proj/en/base/embedded/handbook/index.xml?part=1&chap=5" rel="nofollow">Compiling with qemu-user chroot</a> - 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> <a href="http://www.aurel32.net/info/debian_arm_qemu.php" class="external text" title="http://www.aurel32.net/info/debian_arm_qemu.php" rel="nofollow">Debian on an emulated ARM machine</a> based upon some Debian Linux host (see here for the probably most current <a href="http://people.debian.org/~aurel32/qemu/armel/" class="external text" title="http://people.debian.org/~aurel32/qemu/armel/" rel="nofollow">images</a> matching this HowTo) </li><li> <a href="http://www.aurel32.net/info/debian_mips_qemu.php" class="external text" title="http://www.aurel32.net/info/debian_mips_qemu.php" rel="nofollow">Debian on an emulated MIPS(EL) machine</a> based upon some Debian Linux host </li><li> <a href="http://www.aurel32.net/info/debian_sparc_qemu.php" class="external text" title="http://www.aurel32.net/info/debian_sparc_qemu.php" rel="nofollow">Debian on an emulated SPARC machine</a> based upon some Debian Linux host </li><li> <a href="http://en.wikibooks.org/wiki/QEMU/Windows_XP" class="external text" title="http://en.wikibooks.org/wiki/QEMU/Windows_XP" rel="nofollow">Windows XP on QEMU-x86</a> based upon some Linux host (brief but good hints on the guest set up) </li><li> <a href="http://en.wikibooks.org/wiki/QEMU/FreeDOS" class="external text" title="http://en.wikibooks.org/wiki/QEMU/FreeDOS" rel="nofollow">FreeDos on QEMU-x86</a> based upon some Linux host (concentrates on host details) </li><li> <a href="http://www.armux.org/index.php/Virtual_Development_Board" class="external text" title="http://www.armux.org/index.php/Virtual_Development_Board" rel="nofollow">QEMU in Embedded Linux Development</a> - Virtual Development Board </li></ul> <p><i>for developers</i> </p> <ul><li> <a href="http://wiki.qemu.org/Documentation/Debugging" title="Documentation/Debugging">Debug QEMU</a> </li><li> <a href="http://wiki.qemu.org/Documentation/GettingStartedDevelopers" title="Documentation/GettingStartedDevelopers">Getting Started for Developers</a> </li></ul> <a name="User_Documentation" id="User_Documentation"></a><h2> <span class="mw-headline"> User Documentation </span></h2> <ul><li> <a href="http://qemu.weilnetz.de/qemu-doc.html" class="external text" title="http://qemu.weilnetz.de/qemu-doc.html" rel="nofollow">QEMU Emulator User Documentation</a> (HTML generated from QEMU sources, updated frequently) </li><li> <a href="http://wiki.qemu.org/download/qemu-doc.html" class="external text" title="http://wiki.qemu.org/download/qemu-doc.html" rel="nofollow">Older version of the above</a> (from QEMU 0.12.0 release) </li><li> <a href="http://wiki.qemu.org/KQemu/Doc" title="KQemu/Doc">QEMU Accelerator User Documentation</a> (<a href="http://wiki.qemu.org/KQEMU" title="KQEMU" class="mw-redirect">KQEMU</a>, obsolete) </li><li> <a href="http://www.claunia.com/qemu" class="external text" title="http://www.claunia.com/qemu" rel="nofollow">QEMU Official OS Support List</a> (includes images) </li></ul> <a name="Technical_Documentation" id="Technical_Documentation"></a><h2> <span class="mw-headline"> Technical Documentation </span></h2> <ul><li> <a href="http://qemu.weilnetz.de/qemu-tech.html" class="external text" title="http://qemu.weilnetz.de/qemu-tech.html" rel="nofollow">QEMU Internals</a> (HTML generated from QEMU sources, updated frequently) </li><li> <a href="http://www.usenix.org/publications/library/proceedings/usenix05/tech/freenix/bellard.html" class="external text" title="http://www.usenix.org/publications/library/proceedings/usenix05/tech/freenix/bellard.html" rel="nofollow">QEMU, a Fast and Portable Dynamic Translator</a>, USENIX 2005 Annual Technical Conference, FREENIX Track (NB: dyngen is obsolete and has been replaced by TCG) </li><li> <a href="http://www.gnome.org/~markmc/qcow-image-format.html" class="external text" title="http://www.gnome.org/~markmc/qcow-image-format.html" rel="nofollow">The QCOW Image Format</a> </li><li> <a href="http://wiki.qemu.org/Documentation/HardwareManuals" title="Documentation/HardwareManuals">Hardware Manuals</a> </li><li> <a href="http://wiki.qemu.org/Documentation/ISAManuals" title="Documentation/ISAManuals">Instruction Set Manuals (Assembly Language)</a> </li><li> <a href="http://wiki.qemu.org/Documentation/Platforms/PC" title="Documentation/Platforms/PC">PC Platform</a> </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 "<a href="./Manual - QEMU_files/Manual - QEMU.html">http://wiki.qemu.org/Manual</a>"</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"><a href="http://www.gnu.org/licenses/old-licenses/fdl-1.2.txt"><img src="./Manual - QEMU_files/gnu-fdl.png" alt="GNU Free Documentation License 1.2"></a></div></td><td align="center"> <ul id="f-list"> <li id="f-copyright">Content is available under <a href="http://www.gnu.org/licenses/old-licenses/fdl-1.2.txt" class="external " title="http://www.gnu.org/licenses/old-licenses/fdl-1.2.txt">GNU Free Documentation License 1.2</a>.<br> QEMU is a trademark of Fabrice Bellard.<br> Hosting generously provided by <a href="http://www.tilenetworks.com/">Tile Networks</a>.</li> </ul></td><td align="right" width="1%" nowrap="nowrap"><div id="f-poweredbyico"><a href="http://www.mediawiki.org/"><img src="./Manual - QEMU_files/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki"></a></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>
Attachment:
signature.asc
Description: This is a digitally signed message part