From 0f81e2792c7b08d9f42876b14d408f9dbc251539 Mon Sep 17 00:00:00 2001 From: JamesonHuang <462430725@qq.com> Date: Thu, 18 Jun 2015 15:55:16 +0800 Subject: [PATCH] write cacheUtils code --- .../python/testCode/cache/img.htm | 104 ++ .../logo_white_ee663702.png0-7000} | Bin .../logo_white_ee663702.png7001-14175} | Bin .../python/testCode/{ => cache}/res.png | Bin .../testCode/cache/{backup => sina.htm} | 1368 ++++++++-------- .../python/testCode/cache/www.sina.com.cn | 1410 +++++++++-------- .../python/testCode/cacheUtil.py | 51 +- .../python/testCode/data.json | 1 + 1_7.http_proxy_server/python/testCode/dd.json | 1 + 9 files changed, 1570 insertions(+), 1365 deletions(-) create mode 100644 1_7.http_proxy_server/python/testCode/cache/img.htm rename 1_7.http_proxy_server/python/testCode/{test1.png => cache/logo_white_ee663702.png0-7000} (100%) rename 1_7.http_proxy_server/python/testCode/{test2.png => cache/logo_white_ee663702.png7001-14175} (100%) rename 1_7.http_proxy_server/python/testCode/{ => cache}/res.png (100%) rename 1_7.http_proxy_server/python/testCode/cache/{backup => sina.htm} (81%) create mode 100644 1_7.http_proxy_server/python/testCode/data.json create mode 100644 1_7.http_proxy_server/python/testCode/dd.json diff --git a/1_7.http_proxy_server/python/testCode/cache/img.htm b/1_7.http_proxy_server/python/testCode/cache/img.htm new file mode 100644 index 0000000..f56749e --- /dev/null +++ b/1_7.http_proxy_server/python/testCode/cache/img.htm @@ -0,0 +1,104 @@ +百度一下,你就知道 +
+ +百度一下,你就知道 +
+ +PNG + + IHDR +7&IDATxqAlѨj5؃ + Fb% +&ji(&P"hWm3e~q>|}Q@(-E p@8p@8 p@8 @8 p @8p p@8@8 pEQGEY@BvO_Mo#D7~组~Np 3$c)vx r>o* +}pp@8 D2@[݅@8 `i$ ~jkk8N(>WΠϸf1Z57i`x<74\.jKǖ͛eJ**0@8 CZ={JԒSh[8c({p@8зLГ 7"xňsܣ!5t :e7N`NvoټTiƄM8Aq}Lp@8 }#xQ`Bv/e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t L4s6ONUeD>W1P+Y؜-:0]‘POR+Xѓw0Oz! G`O :yXt:ײi[ZZۻwʷ6ݴ/'yg޼ ,~ͺuP%=ѣ-9j +@>3:DJR[6 )?H8Xf6v/[>Nͫ?;8M: P6!I`V]. $ߧpC9D;gk?f-Zw;n+qآ||R^ Q~GqMMMO,SkvGOlm9|챓qj&@X#J(t42aWX$g|ųуSZ5p$hؿo]|"э#g.!_niz&#'%P:a"bq\_19&ɾSOb;:~U,sת+zםwF,4r?<^rDO|H,"?[lΧQi|˓DrhFpF2UYQQA~1fVhdӝ!K!4[h.2\p (zަr)3Tu`9=-C~hr0dI' C'1̟ +@O e*EP(%O$Y828“^49Y}O>rƍ[ZZlKd÷4؜NJ_];nXYxтpHHyiKYq$bkܟBhc gªaCp5P[MNE7&Q>DTrJU _p14t}Rе1*_ѵβARas4a#4` YMbB"4c1_,XNrVLˈp>G%Vْ;oUmMS&x?R,K3!Yb~yո#TʢYEuݻo?z2q?1 eɅI }6 B%A8y O #5L@6o%pTfo#Hh$_$T OS4GαϏlZ7&MF?BjQ>_,QfD)GKY5LK^H}/eFT8RBL*0 QAQ &"?RQ8A,SWq@9gĄ=%AZɅ ̀doH(94iJWQ8Er^t2x}'?z 1+]U|CY`Xl +]hf2m6?D";ԣ)F7$di#f?Ծ7]ůI!TJ3<[g`"TtfŬOfd>"dFw EUܨxl) - + @@ -74,7 +74,9 @@ @@ -1305,6 +1307,33 @@ document.domain = "sina.com.cn"; + +

+ + + @@ -1635,7 +1664,7 @@ document.domain = "sina.com.cn"; һ -ܲ +ϷҰ @@ -1644,43 +1673,43 @@ document.domain = "sina.com.cn"; @@ -1702,7 +1731,7 @@ document.domain = "sina.com.cn";
  • ˽̱ Գ""
  • -
  • ƸƵ༭ ˫-ܲʲͳ
  • +
  • ƸƵ༭ 򻼰Ůѹ
  • ɵ Ⱦ 10󾭵
  • @@ -1774,31 +1803,31 @@ document.domain = "sina.com.cn"; @@ -2027,31 +2056,31 @@ document.domain = "sina.com.cn";
    @@ -2063,10 +2092,10 @@ document.domain = "sina.com.cn"; - - + + - ǧǻBGM + ܰȥˣ @@ -2193,7 +2222,7 @@ var fortab_random = parseInt(2*Math.random()); -2015.6.17 +2015.6.18
    @@ -2970,36 +2998,36 @@ jsLoader({name: "shm",callback: function() {
    @@ -3008,18 +3036,18 @@ jsLoader({name: "shm",callback: function() { @@ -3122,33 +3150,33 @@ jsLoader({name: "shm",callback: function() {
    -
    @@ -3267,19 +3295,19 @@ jsLoader({name: "shm",callback: function() { Ĵ·82 - - - Ұʮ ƤԼ27 - @@ -3384,40 +3412,40 @@ jsLoader({name: "shm",callback: function() {
    @@ -3426,18 +3454,18 @@ jsLoader({name: "shm",callback: function() { @@ -3456,9 +3484,9 @@ jsLoader({name: "shm",callback: function() {
  • ͼ| ӢŮ񽿵ε ݹȹ
  • ²|̵㴩ɽկŮ ³Ůò
  • -
  • Ѹ ƹɽ׺
  • +
  • ʮپ SƷ̷ֳ
  • -
  • ƽݡ ưԹѩܽŮѡ
  • +
  • СS¶ҵ 練Ƶ
  • @@ -3468,15 +3496,15 @@ jsLoader({name: "shm",callback: function() {
    @@ -4518,35 +4544,35 @@ href="http://sax.sina.com.cn/click?type=nonstd&t=REowMDAwNTgwOQ%3D%3D&sign=7547d
    @@ -4555,32 +4581,32 @@ href="http://sax.sina.com.cn/click?type=nonstd&t=REowMDAwNTgwOQ%3D%3D&sign=7547d
    @@ -4605,13 +4631,13 @@ href="http://sax.sina.com.cn/click?type=nonstd&t=REowMDAwNTgwOQ%3D%3D&sign=7547d
    @@ -4669,9 +4695,9 @@ href="http://sax.sina.com.cn/click?type=nonstd&t=REowMDAwNTgwOQ%3D%3D&sign=7547d
    @@ -6044,45 +6084,44 @@ jsLoader({
    @@ -6091,40 +6130,40 @@ jsLoader({ @@ -6157,17 +6196,17 @@ jsLoader({
    @@ -6193,38 +6232,38 @@ jsLoader({
    @@ -6243,7 +6282,7 @@ jsLoader({
  • | СSɹ֡ѹͺ
  • ͼ| УģرƴԸӾװ
  • -
  • | ĹϵŮ˭
  • +
  • | ӱһո
  • @@ -3468,15 +3496,15 @@ jsLoader({name: "shm",callback: function() {
    @@ -4450,8 +4476,8 @@ href="http://sax.sina.com.cn/click?type=nonstd&t=REowMDAwNTgwOQ%3D%3D&sign=7547d @@ -4468,7 +4494,7 @@ href="http://sax.sina.com.cn/click?type=nonstd&t=REowMDAwNTgwOQ%3D%3D&sign=7547d
  • зʶȽ
  • -
  • ת˲ŵ˲ ijֵľɫ
  • +
  • Ӱʵ ׽ϸ΢
  • @@ -4518,35 +4544,35 @@ href="http://sax.sina.com.cn/click?type=nonstd&t=REowMDAwNTgwOQ%3D%3D&sign=7547d
    @@ -4555,32 +4581,32 @@ href="http://sax.sina.com.cn/click?type=nonstd&t=REowMDAwNTgwOQ%3D%3D&sign=7547d
    @@ -4605,13 +4631,13 @@ href="http://sax.sina.com.cn/click?type=nonstd&t=REowMDAwNTgwOQ%3D%3D&sign=7547d
    @@ -4669,9 +4695,9 @@ href="http://sax.sina.com.cn/click?type=nonstd&t=REowMDAwNTgwOQ%3D%3D&sign=7547d
    @@ -6044,45 +6084,44 @@ jsLoader({
    @@ -6091,40 +6130,40 @@ jsLoader({ @@ -6157,17 +6196,17 @@ jsLoader({
    @@ -6193,38 +6232,38 @@ jsLoader({
    @@ -6243,7 +6282,7 @@ jsLoader({
  • | СSɹ֡ѹͺ
  • ͼ| УģرƴԸӾװ
  • -
  • | ĹϵŮ˭
  • +
  • | ӱһո