리눅스 환경에서 자바를 이용한 HTML 파싱

tenazer의 이미지

현재 자바와 jsp를 이용하여 웹베이스의 파싱 툴을 만들고 있습니다.
지금까지 윈도우 톰캣 환경에서 테스팅을 하다가
리눅스 환경으로 이전을 하였는데
제대로 동작하던 프로그램이 말썽을 부리네요.

지금까지 쓴 방법은 URL을 스트링으로 입력 받아 URL 객체를 만든 후
자바의 HttpURLConnection 클래스를 이용하여 연결을 하고
BufferedReader를 통하여 스트림을 읽어오는 방식으로 구현 하였습니다.

문제는 이전에 url만으로 잘 동작하던 프로그램이 이제는 파일까지 써 줘야 한다는 겁니다.

예를 들어 기존에는
http://www.myhost.com/ 만 url로 넘겨줘도 html코드를 잘 읽어 오더니
지금은
http://www.myhost.com/index.html 이렇게 파일 이름까지 써줘야만 읽어옵니다.
파일 이름을 빼면 다음과 같은 html 코드를 읽어오더군요

html>
frameset rows='*,0' border=0>
frame src='http://www.myhost.com?'>
frame src='http://xxx.xxx.xxx.xxx:10000/top_X.asp?url=www.myhost.com&ip=ooo.ooo.ooo.ooo'>
/frameset>
/html>

무엇이 문제인지 궁금합니다.

윈도우의 자바 버전은 1.6.0_11 이고
리눅스의 자바 버전은 1.6.0_06 입니다.

endofhope의 이미지


리눅스로 옮기고 테스트한 url 과 윈도에서 테스트한 url 이 동일한가요?

--
말할 수 있는 것은 분명하게 말해질 수 있다;
말해질 수 없는 것에 대해서는 침묵해야한다.
논리철학논고 - 루드비히 비트겐슈타인

--
말할 수 있는 것은 분명하게 말해질 수 있다;
말해질 수 없는 것에 대해서는 침묵해야한다.
논리철학논고 - 루드비히 비트겐슈타인

tenazer의 이미지

예 동일합니다.
예를 들어 윈도우에서 http://www.google.com을 입력했을때 잘 되던것이
리눅스 환경에서는 http://www.google.com 으로 똑같이 입력해도 위와 같이 다른 html 소스를 불러옵니다.
제대로 불러오려면 url 뒤에 파일명(경로)까지 붙여줘야 했습니다.
ex) http://www.google.com/index.html

endofhope의 이미지


저는 리눅스 환경입니다만 둘 다 거의 동일한 결과가 나옵니다.
제가 테스트한 소스입니다.

package com.endofhope.test;
 
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
 
public class Dummy {
	public static void main(String[] args) {
		Dummy dummy = new Dummy();
		dummy.useUrlConnection();
	}
 
	private void useUrlConnection() {
		String urlString1 = "http://www.google.com";
		String urlString2 = "http://www.google.com/index.html";
		String result1 = useUrlConnection(urlString1);
		String result2 = useUrlConnection(urlString2);
 
		System.out.println("-----");
		System.out.println(result1);
		System.out.println("-----");
		System.out.println(result2);
	}
 
	private String useUrlConnection(String urlString) {
		StringBuilder sb = new StringBuilder();
		try {
			URL url = new URL(urlString);
			HttpURLConnection connection = (HttpURLConnection) url
					.openConnection();
			InputStream in = connection.getInputStream();
			int oneInt = -1;
			int colSize = 0;
			while (-1 != (oneInt = in.read())) {
				sb.append((char) oneInt);
				colSize ++;
				if(colSize > 80){
					sb.append("\n");
					colSize = 0;
				}
			}
			in.close();
			connection.disconnect();
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		return sb.toString();
	}
}

결과입니다.

result1 : google.com
 
<!DOCTYPE html>[geshifilter-html]&lt;head&gt;&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; ch&#10;arset=UTF-8&quot;&gt;&lt;title&gt;Google&lt;/title&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;!--&#10;#svc-tab .bgp-fr {b&#10;ackground:transparent url(<a href="http://img0.gmodules.com/ig/images/korea/tab_sprite_02.&#10;gif" rel="nofollow">http://img0.gmodules.com/ig/images/korea/tab_sprite_02.&#10;gif</a>) 0 0 no-repeat}#svc-toolbar .bgp-fr, .ttv {background:transparent url(http://&#10;img0.gmodules.com/ig/images/korea/product_icons_sprite_02.gif) 0 0 no-repeat}#pro&#10;d1 .bgp-fr {background-position:0 0px;}#prod1:hover {color:#ea0000;}#prod1-tt .tt&#10;l,#prod1-tt .ttdl,#prod1-tt .ttdr {background-color:#ea0000;}#prod1-tt .ttc {bord&#10;er-color:#ea0000;}#prod1-tt .ttv {background-position:-364px 0px;}#prod2 .bgp-fr &#10;{background-position:0 -37px;}#prod2:hover {color:#0d53a4;}#prod2-tt .ttl,#prod2-&#10;tt .ttdl,#prod2-tt .ttdr {background-color:#0d53a4;}#prod2-tt .ttc {border-color:&#10;#0d53a4;}#prod2-tt .ttv {background-position:-364px -37px;}#prod3 .bgp-fr {backgr&#10;ound-position:0 -74px;}#prod3:hover {color:#878787;}#prod3-tt .ttl,#prod3-tt .ttd&#10;l,#prod3-tt .ttdr {background-color:#878787;}#prod3-tt .ttc {border-color:#878787&#10;;}#prod3-tt .ttv {background-position:-364px -74px;}#prod4 .bgp-fr {background-po&#10;sition:0 -111px;}#prod4:hover {color:#1da745;}#prod4-tt .ttl,#prod4-tt .ttdl,#pro&#10;d4-tt .ttdr {background-color:#1da745;}#prod4-tt .ttc {border-color:#1da745;}#pro&#10;d4-tt .ttv {background-position:-364px -111px;}#prod5 .bgp-fr {background-positio&#10;n:0 -148px;}#prod5:hover {color:#9e7eb9;}#prod5-tt .ttl,#prod5-tt .ttdl,#prod5-tt&#10; .ttdr {background-color:#9e7eb9;}#prod5-tt .ttc {border-color:#9e7eb9;}#prod5-tt&#10; .ttv {background-position:-364px -148px;}#prod6 .bgp-fr {background-position:0 -&#10;185px;}#prod6:hover {color:#ffb400;}#prod6-tt .ttl,#prod6-tt .ttdl,#prod6-tt .ttd&#10;r {background-color:#ffb400;}#prod6-tt .ttc {border-color:#ffb400;}#prod6-tt .ttv&#10; {background-position:-364px -185px;}#prod7 .bgp-fr {background-position:0 -222px&#10;;}#prod7:hover {color:#3aa4df;}#prod7-tt .ttl,#prod7-tt .ttdl,#prod7-tt .ttdr {ba&#10;ckground-color:#3aa4df;}#prod7-tt .ttc {border-color:#3aa4df;}#prod7-tt .ttv {bac&#10;kground-position:-364px -222px;}&#10;--&gt;&lt;/style&gt;&#10;&lt;link rel=&quot;stylesheet&quot; href=&quot;/ig/f/a&#10;g_XjF1x-LA/intl/ALL_kr/homepage.css&quot; type=&quot;text/css&quot;&gt;&lt;/head&gt;&lt;body onload=&quot;_KO.ini&#10;t()&quot;&gt;&lt;div class=&quot;gbh&quot; style=&quot;right:0&quot;&gt;&lt;/div&gt;&lt;div id=&quot;guser&quot;&gt;&lt;a href=&quot;/url?sa=p&amp;pr&#10;ef=ig&amp;pval=3&amp;q=/ig&quot;&gt;iGoogle&lt;/a&gt;&lt;span class=&quot;separator&quot;&gt;|&lt;/span&gt;&lt;a href=&quot;https://w&#10;ww.google.com/accounts/Login?continue=http://www.google.co.kr/&amp;hl=ko&quot;&gt;·Î±×ÀÎ&lt;/a&gt;&lt;&#10;/div&gt;&lt;div style=&quot;clear:both&quot;&gt;&lt;/div&gt;&lt;div id=&quot;wrapper&quot;&gt;&lt;img id=&quot;logo&quot; alt=&quot;Google&quot; &#10;src=&quot;http://img0.gmodules.com/ig/f/oKstlUEg20s/intl/ALL_kr/logo.gif&quot; /&gt;&lt;form acti&#10;on=&quot;http://www.google.co.kr/search&quot; name=&quot;f&quot; &gt;&lt;script&gt;&lt;!--&#10;function qs(el) {if (w&#10;indow.RegExp &amp;&amp; window.encodeURIComponent) {var ue=el.href;var qe=encodeURICompon&#10;ent(document.f.q.value);if(ue.indexOf(&quot;q=&quot;)!=-1){el.href=ue.replace(new RegExp(&quot;q&#10;=[^&amp;$]*&quot;),&quot;q=&quot;+qe);}else{el.href=ue+&quot;&amp;q=&quot;+qe;}}return 1;}&#10;// --&gt;&#10;&lt;/script&gt;&lt;table &#10;id=&quot;svc-tab&quot; class=&quot;bgp&quot; cellpadding=&quot;3&quot; cellspacing=&quot;2&quot; border=&quot;0&quot;&gt;&lt;tr&gt;&lt;td id=&quot;s&#10;vc-tab0&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/span&gt;&lt;span&gt;&lt;strong&gt;À¥¹®¼­&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;&lt;td&#10; class=&quot;separator svc-tab_noimg&quot;&gt;|&lt;/td&gt;&lt;td&gt;&lt;a id=&quot;svc-tab1&quot; href=&quot;http://images.g&#10;oogle.co.kr/imghp?ie=UTF-8&amp;oe=UTF-8&amp;hl=ko&amp;tab=wi&quot; onclick=&quot;return qs(this)&quot;&gt;&lt;span&#10; class=&quot;bgp-fr&quot;&gt;&lt;/span&gt;&lt;span&gt;À̹ÌÁö&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;separator svc-tab_n&#10;oimg&quot;&gt;|&lt;/td&gt;&lt;td&gt;&lt;a id=&quot;svc-tab2&quot; href=&quot;http://news.google.co.kr/nwshp?ie=UTF-8&amp;oe&#10;=UTF-8&amp;hl=ko&amp;tab=wn&quot; onclick=&quot;return qs(this)&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/span&gt;&lt;span&gt;&#10;´º½º&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;separator svc-tab_noimg&quot;&gt;|&lt;/td&gt;&lt;td&gt;&lt;a id=&quot;svc-tab3&#10;&quot; href=&quot;http://maps.google.co.kr/maps?ie=UTF-8&amp;oe=UTF-8&amp;hl=ko&amp;tab=wl&quot; onclick=&quot;re&#10;turn qs(this)&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/span&gt;&lt;span&gt;Áöµµ&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;s&#10;eparator svc-tab_noimg&quot;&gt;|&lt;/td&gt;&lt;td&gt;&lt;a id=&quot;svc-tab4&quot; href=&quot;http://www.google.co.kr/&#10;dictionary?ie=UTF-8&amp;oe=UTF-8&amp;hl=ko&amp;tab=wD&amp;langpair=en|ko&quot; onclick=&quot;return qs(this&#10;)&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/span&gt;&lt;span&gt;»çÀü&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;separator svc&#10;-tab_noimg&quot;&gt;|&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;/options/&quot;&gt;&lt;span class=&quot;svc-tab_noimg&quot;&gt;´õº¸±â &amp;raq&#10;uo;&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;div id=&quot;search_form&quot;&gt;&lt;input name=&quot;complete&quot; type&#10;=&quot;hidden&quot; value=&quot;1&quot; /&gt;&lt;input name=&quot;hl&quot; type=&quot;hidden&quot; value=&quot;ko&quot; /&gt;&lt;div&gt;&lt;input aut&#10;ocomplete=&quot;off&quot; name=&quot;q&quot; id=&quot;q&quot; type=&quot;text&quot; maxlength=&quot;2048&quot; size=&quot;55&quot; title=&quot;Goo&#10;gle °Ë»ö&quot; value=&quot;&quot; /&gt;&lt;/div&gt;&lt;input name=&quot;btnG&quot; type=&quot;submit&quot; class=&quot;search_button&quot;&#10; value=&quot;Google °Ë»ö&quot; /&gt;&lt;input name=&quot;btnI&quot; type=&quot;submit&quot; class=&quot;search_button&quot; val&#10;ue=&quot;I&#039;m Feeling Lucky&quot; /&gt;&lt;/div&gt;&lt;div id=&quot;search_options&quot;&gt;&lt;span id=&quot;search_scope&quot; &gt;&#10;&lt;input type=&quot;radio&quot; name=&quot;lr&quot; value=&quot;&quot; checked id=&quot;all&quot; /&gt;&lt;label for=&quot;all&quot;  &gt;Àüü&#10; À¥&lt;/label&gt;&lt;input type=&quot;radio&quot; name=&quot;lr&quot; value=&quot;lang_ko&quot; id=&quot;il&quot; /&gt;&lt;label for=&quot;il&#10;&quot;&gt;Çѱ¹¾î À¥&lt;/label&gt;&lt;/span&gt;&lt;a href=&quot;http://www.google.co.kr/advanced_search?hl=ko&quot;&#10;&gt;°í±Þ°Ë»ö&lt;/a&gt;&lt;span class=&quot;separator&quot;&gt;|&lt;/span&gt;&lt;a href=&quot;http://www.google.co.kr/pre&#10;ferences?hl=ko&quot;&gt;ȯ°æ¼³Á¤&lt;/a&gt;&lt;span class=&quot;separator&quot;&gt;|&lt;/span&gt;&lt;a href=&quot;http://www.g&#10;oogle.co.kr/language_tools?hl=ko&quot;&gt;¾ð¾îµµ±¸&lt;/a&gt;&lt;/div&gt;&lt;/form&gt;&lt;table id=&quot;svc-toolbar&#10;&quot; class=&quot;bgp&quot; cellpadding=&quot;3&quot; cellspacing=&quot;2&quot; border=&quot;0&quot;&gt;&lt;tr&gt;&lt;td&gt;&lt;a id=&quot;prod1&quot; hr&#10;ef=&quot;http://www.google.com/url?ct=pro&amp;source=kwh&amp;cd=1&amp;q=http%3A//mail.google.com/m&#10;ail%3Fhl%3Dko&quot; title=&quot;½ºÆÔ¾ø´Â ´ë¿ë·® À̸ÞÀÏ&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/span&gt;&lt;span&gt;G&#10;mail&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a id=&quot;prod2&quot; href=&quot;http://www.google.com/url?ct=pro&amp;sour&#10;ce=kwh&amp;cd=2&amp;q=http%3A//www.google.com/calendar/render%3Fhl%3Dko&quot; title=&quot;°øÀ¯°¡ ½¬&#10;¿î À¥ ÀÏÁ¤°ü¸®&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/span&gt;&lt;span&gt;Ķ¸°´õ&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a id&#10;=&quot;prod3&quot; href=&quot;http://www.google.com/url?ct=pro&amp;source=kwh&amp;cd=3&amp;q=http%3A//toolba&#10;r.google.com/intl/ko/&quot; title=&quot;ºê¶ó¿ìÀú¿¡¼­ Áñ±â´Â ±¸±Û&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/sp&#10;an&gt;&lt;span&gt;Åø¹Ù&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a id=&quot;prod4&quot; href=&quot;http://www.google.com/url?ct&#10;=pro&amp;source=kwh&amp;cd=4&amp;q=http%3A//desktop.google.co.kr/&quot; title=&quot;½±°í ºü¸¥ ³» ÄÄÇ»ÅÍ&#10; °Ë»ö&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/span&gt;&lt;span&gt;µ¥½ºÅ©Åé&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a id=&quot;prod5&#10;&quot; href=&quot;http://www.google.com/url?ct=pro&amp;source=kwh&amp;cd=5&amp;q=http%3A//picasa.google&#10;.co.kr/&quot; title=&quot;ÆíÁý°ú °øÀ¯°¡ ½¬¿î Æ÷Åä¾Ù¹ü&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/span&gt;&lt;span&gt;Pi&#10;casa&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a id=&quot;prod6&quot; href=&quot;http://www.google.com/url?ct=pro&amp;sour&#10;ce=kwh&amp;cd=6&amp;q=http%3A//kr.youtube.com/&quot; title=&quot;¼¼°èÀûÀÎ µ¿¿µ»ó Ä¿¹Â´ÏƼ&quot;&gt;&lt;span cl&#10;ass=&quot;bgp-fr&quot;&gt;&lt;/span&gt;&lt;span&gt;YouTube&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a id=&quot;prod7&quot; href=&quot;http://w&#10;ww.google.com/url?ct=pro&amp;source=kwh&amp;cd=7&amp;q=http%3A//www.google.com/chrome/%3Fhl%3&#10;Dko&quot; title=&quot;GoogleÀÇ Â÷¼¼´ë À¥ ºê¶ó¿ìÀú&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/span&gt;&lt;span&gt;Å©·Ò&lt;/&#10;span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;div id=&quot;tt&quot; class=&quot;tt&quot; style=&quot;display:none&quot;&gt;&lt;div clas&#10;s=&quot;ttl&quot;&gt;&lt;/div&gt;&lt;div class=&quot;ttc&quot;&gt;&lt;div class=&quot;ttdc&quot;&gt;&lt;div class=&quot;ttdl&quot;&gt;&lt;/div&gt;&lt;div cla&#10;ss=&quot;ttdr&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;tt-text&quot;&gt;&lt;/div&gt;&lt;div class=&quot;ttdc&quot;&gt;&lt;div class=&quot;tt&#10;dl&quot;&gt;&lt;/div&gt;&lt;div class=&quot;ttdr&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ttl&quot;&gt;&lt;/div&gt;&lt;div class=&quot;&#10;ttvc&quot;&gt;&lt;div class=&quot;ttv&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id=&quot;footer&quot;&gt;&lt;div id=&quot;footer_links&quot;&gt;&#10;&lt;a href=&quot;/ads/&quot;&gt;±¤°í ÇÁ·Î±×·¥&lt;/a&gt;&lt;span class=&quot;separator&quot;&gt;|&lt;/span&gt;&lt;a href=&quot;/jobs/&quot;&#10;&gt;ä¿ëÁ¤º¸&lt;/a&gt;&lt;span class=&quot;separator&quot;&gt;|&lt;/span&gt;&lt;a href=&quot;/about.html&quot;&gt;Google Á¤º¸&lt;/a&#10;&gt;&lt;span class=&quot;separator&quot;&gt;|&lt;/span&gt;&lt;a href=&quot;http://www.google.com/ncr&quot;&gt;Google.com i&#10;n English&lt;/a&gt;&lt;/div&gt;&lt;div id=&quot;copyright&quot;&gt;&amp;copy;2009 - &lt;a href=&quot;http://www.google.co&#10;m/intl/ko/privacy.html&quot;&gt;°³ÀÎÁ¤º¸&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;script src=&quot;/ig/f/ziANi3Oy&#10;40M/intl/ALL_kr/homepage.js&quot;&gt;&lt;/script&gt;&lt;/body&gt;&lt;script&gt;if (!window.google) { window&#10;.google={}; }if (!window.google.kHL) { window.google.kHL=&#039;ko&#039;; }window.setTimeout&#10;(&#039;window.google.ac.install(document.f,document.f.q,&quot;&quot;,true,&quot;´Ý±â&quot;,true,&quot;&quot;,&quot;&quot;)&#039;,10&#10;0);&lt;/script&gt;[/geshifilter-html]
 
 
result2 : google.com/index.html
 
<!DOCTYPE html>[geshifilter-html]&lt;head&gt;&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; ch&#10;arset=UTF-8&quot;&gt;&lt;title&gt;Google&lt;/title&gt;&lt;style type=&quot;text/css&quot;&gt;&lt;!--&#10;#svc-tab .bgp-fr {b&#10;ackground:transparent url(<a href="http://img0.gmodules.com/ig/images/korea/tab_sprite_02.&#10;gif" rel="nofollow">http://img0.gmodules.com/ig/images/korea/tab_sprite_02.&#10;gif</a>) 0 0 no-repeat}#svc-toolbar .bgp-fr, .ttv {background:transparent url(http://&#10;img0.gmodules.com/ig/images/korea/product_icons_sprite_02.gif) 0 0 no-repeat}#pro&#10;d1 .bgp-fr {background-position:0 0px;}#prod1:hover {color:#ea0000;}#prod1-tt .tt&#10;l,#prod1-tt .ttdl,#prod1-tt .ttdr {background-color:#ea0000;}#prod1-tt .ttc {bord&#10;er-color:#ea0000;}#prod1-tt .ttv {background-position:-364px 0px;}#prod2 .bgp-fr &#10;{background-position:0 -37px;}#prod2:hover {color:#0d53a4;}#prod2-tt .ttl,#prod2-&#10;tt .ttdl,#prod2-tt .ttdr {background-color:#0d53a4;}#prod2-tt .ttc {border-color:&#10;#0d53a4;}#prod2-tt .ttv {background-position:-364px -37px;}#prod3 .bgp-fr {backgr&#10;ound-position:0 -74px;}#prod3:hover {color:#878787;}#prod3-tt .ttl,#prod3-tt .ttd&#10;l,#prod3-tt .ttdr {background-color:#878787;}#prod3-tt .ttc {border-color:#878787&#10;;}#prod3-tt .ttv {background-position:-364px -74px;}#prod4 .bgp-fr {background-po&#10;sition:0 -111px;}#prod4:hover {color:#1da745;}#prod4-tt .ttl,#prod4-tt .ttdl,#pro&#10;d4-tt .ttdr {background-color:#1da745;}#prod4-tt .ttc {border-color:#1da745;}#pro&#10;d4-tt .ttv {background-position:-364px -111px;}#prod5 .bgp-fr {background-positio&#10;n:0 -148px;}#prod5:hover {color:#9e7eb9;}#prod5-tt .ttl,#prod5-tt .ttdl,#prod5-tt&#10; .ttdr {background-color:#9e7eb9;}#prod5-tt .ttc {border-color:#9e7eb9;}#prod5-tt&#10; .ttv {background-position:-364px -148px;}#prod6 .bgp-fr {background-position:0 -&#10;185px;}#prod6:hover {color:#ffb400;}#prod6-tt .ttl,#prod6-tt .ttdl,#prod6-tt .ttd&#10;r {background-color:#ffb400;}#prod6-tt .ttc {border-color:#ffb400;}#prod6-tt .ttv&#10; {background-position:-364px -185px;}#prod7 .bgp-fr {background-position:0 -222px&#10;;}#prod7:hover {color:#3aa4df;}#prod7-tt .ttl,#prod7-tt .ttdl,#prod7-tt .ttdr {ba&#10;ckground-color:#3aa4df;}#prod7-tt .ttc {border-color:#3aa4df;}#prod7-tt .ttv {bac&#10;kground-position:-364px -222px;}&#10;--&gt;&lt;/style&gt;&#10;&lt;link rel=&quot;stylesheet&quot; href=&quot;/ig/f/a&#10;g_XjF1x-LA/intl/ALL_kr/homepage.css&quot; type=&quot;text/css&quot;&gt;&lt;/head&gt;&lt;body onload=&quot;_KO.ini&#10;t()&quot;&gt;&lt;div class=&quot;gbh&quot; style=&quot;right:0&quot;&gt;&lt;/div&gt;&lt;div id=&quot;guser&quot;&gt;&lt;a href=&quot;/url?sa=p&amp;pr&#10;ef=ig&amp;pval=3&amp;q=/ig&quot;&gt;iGoogle&lt;/a&gt;&lt;span class=&quot;separator&quot;&gt;|&lt;/span&gt;&lt;a href=&quot;https://w&#10;ww.google.com/accounts/Login?continue=http://www.google.co.kr/index.html&amp;hl=ko&quot;&gt;·&#10;α×ÀÎ&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;clear:both&quot;&gt;&lt;/div&gt;&lt;div id=&quot;wrapper&quot;&gt;&lt;img id=&quot;logo&quot; alt&#10;=&quot;Google&quot; src=&quot;http://img0.gmodules.com/ig/f/oKstlUEg20s/intl/ALL_kr/logo.gif&quot; /&gt;&#10;&lt;form action=&quot;http://www.google.co.kr/search&quot; name=&quot;f&quot; &gt;&lt;script&gt;&lt;!--&#10;function qs(&#10;el) {if (window.RegExp &amp;&amp; window.encodeURIComponent) {var ue=el.href;var qe=encod&#10;eURIComponent(document.f.q.value);if(ue.indexOf(&quot;q=&quot;)!=-1){el.href=ue.replace(new&#10; RegExp(&quot;q=[^&amp;$]*&quot;),&quot;q=&quot;+qe);}else{el.href=ue+&quot;&amp;q=&quot;+qe;}}return 1;}&#10;// --&gt;&#10;&lt;/scri&#10;pt&gt;&lt;table id=&quot;svc-tab&quot; class=&quot;bgp&quot; cellpadding=&quot;3&quot; cellspacing=&quot;2&quot; border=&quot;0&quot;&gt;&lt;tr&#10;&gt;&lt;td id=&quot;svc-tab0&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/span&gt;&lt;span&gt;&lt;strong&gt;À¥¹®¼­&lt;/strong&gt;&lt;/spa&#10;n&gt;&lt;/td&gt;&lt;td class=&quot;separator svc-tab_noimg&quot;&gt;|&lt;/td&gt;&lt;td&gt;&lt;a id=&quot;svc-tab1&quot; href=&quot;http:&#10;//images.google.co.kr/imghp?ie=UTF-8&amp;oe=UTF-8&amp;hl=ko&amp;tab=wi&quot; onclick=&quot;return qs(th&#10;is)&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/span&gt;&lt;span&gt;À̹ÌÁö&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;separator&#10; svc-tab_noimg&quot;&gt;|&lt;/td&gt;&lt;td&gt;&lt;a id=&quot;svc-tab2&quot; href=&quot;http://news.google.co.kr/nwshp?i&#10;e=UTF-8&amp;oe=UTF-8&amp;hl=ko&amp;tab=wn&quot; onclick=&quot;return qs(this)&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/s&#10;pan&gt;&lt;span&gt;´º½º&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;separator svc-tab_noimg&quot;&gt;|&lt;/td&gt;&lt;td&gt;&lt;a id&#10;=&quot;svc-tab3&quot; href=&quot;http://maps.google.co.kr/maps?ie=UTF-8&amp;oe=UTF-8&amp;hl=ko&amp;tab=wl&quot; o&#10;nclick=&quot;return qs(this)&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/span&gt;&lt;span&gt;Áöµµ&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;t&#10;d class=&quot;separator svc-tab_noimg&quot;&gt;|&lt;/td&gt;&lt;td&gt;&lt;a id=&quot;svc-tab4&quot; href=&quot;http://www.goo&#10;gle.co.kr/dictionary?ie=UTF-8&amp;oe=UTF-8&amp;hl=ko&amp;tab=wD&amp;langpair=en|ko&quot; onclick=&quot;retu&#10;rn qs(this)&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/span&gt;&lt;span&gt;»çÀü&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td class=&quot;sep&#10;arator svc-tab_noimg&quot;&gt;|&lt;/td&gt;&lt;td&gt;&lt;a href=&quot;/options/&quot;&gt;&lt;span class=&quot;svc-tab_noimg&quot;&gt;´&#10;õº¸±â &amp;raquo;&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;div id=&quot;search_form&quot;&gt;&lt;input name=&quot;comp&#10;lete&quot; type=&quot;hidden&quot; value=&quot;1&quot; /&gt;&lt;input name=&quot;hl&quot; type=&quot;hidden&quot; value=&quot;ko&quot; /&gt;&lt;div&gt;&#10;&lt;input autocomplete=&quot;off&quot; name=&quot;q&quot; id=&quot;q&quot; type=&quot;text&quot; maxlength=&quot;2048&quot; size=&quot;55&quot; &#10;title=&quot;Google °Ë»ö&quot; value=&quot;&quot; /&gt;&lt;/div&gt;&lt;input name=&quot;btnG&quot; type=&quot;submit&quot; class=&quot;sear&#10;ch_button&quot; value=&quot;Google °Ë»ö&quot; /&gt;&lt;input name=&quot;btnI&quot; type=&quot;submit&quot; class=&quot;search_b&#10;utton&quot; value=&quot;I&#039;m Feeling Lucky&quot; /&gt;&lt;/div&gt;&lt;div id=&quot;search_options&quot;&gt;&lt;span id=&quot;searc&#10;h_scope&quot; &gt;&lt;input type=&quot;radio&quot; name=&quot;lr&quot; value=&quot;&quot; checked id=&quot;all&quot; /&gt;&lt;label for=&quot;a&#10;ll&quot;  &gt;Àüü À¥&lt;/label&gt;&lt;input type=&quot;radio&quot; name=&quot;lr&quot; value=&quot;lang_ko&quot; id=&quot;il&quot; /&gt;&lt;lab&#10;el for=&quot;il&quot;&gt;Çѱ¹¾î À¥&lt;/label&gt;&lt;/span&gt;&lt;a href=&quot;http://www.google.co.kr/advanced_sea&#10;rch?hl=ko&quot;&gt;°í±Þ°Ë»ö&lt;/a&gt;&lt;span class=&quot;separator&quot;&gt;|&lt;/span&gt;&lt;a href=&quot;http://www.google&#10;.co.kr/preferences?hl=ko&quot;&gt;ȯ°æ¼³Á¤&lt;/a&gt;&lt;span class=&quot;separator&quot;&gt;|&lt;/span&gt;&lt;a href=&quot;ht&#10;tp://www.google.co.kr/language_tools?hl=ko&quot;&gt;¾ð¾îµµ±¸&lt;/a&gt;&lt;/div&gt;&lt;/form&gt;&lt;table id=&quot;s&#10;vc-toolbar&quot; class=&quot;bgp&quot; cellpadding=&quot;3&quot; cellspacing=&quot;2&quot; border=&quot;0&quot;&gt;&lt;tr&gt;&lt;td&gt;&lt;a id=&#10;&quot;prod1&quot; href=&quot;http://www.google.com/url?ct=pro&amp;source=kwh&amp;cd=1&amp;q=http%3A//mail.go&#10;ogle.com/mail%3Fhl%3Dko&quot; title=&quot;½ºÆÔ¾ø´Â ´ë¿ë·® À̸ÞÀÏ&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/sp&#10;an&gt;&lt;span&gt;Gmail&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a id=&quot;prod2&quot; href=&quot;http://www.google.com/url?c&#10;t=pro&amp;source=kwh&amp;cd=2&amp;q=http%3A//www.google.com/calendar/render%3Fhl%3Dko&quot; title=&#10;&quot;°øÀ¯°¡ ½¬¿î À¥ ÀÏÁ¤°ü¸®&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/span&gt;&lt;span&gt;Ķ¸°´õ&lt;/span&gt;&lt;/a&gt;&lt;/td&#10;&gt;&lt;td&gt;&lt;a id=&quot;prod3&quot; href=&quot;http://www.google.com/url?ct=pro&amp;source=kwh&amp;cd=3&amp;q=http%&#10;3A//toolbar.google.com/intl/ko/&quot; title=&quot;ºê¶ó¿ìÀú¿¡¼­ Áñ±â´Â ±¸±Û&quot;&gt;&lt;span class=&quot;bg&#10;p-fr&quot;&gt;&lt;/span&gt;&lt;span&gt;Åø¹Ù&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a id=&quot;prod4&quot; href=&quot;http://www.google.&#10;com/url?ct=pro&amp;source=kwh&amp;cd=4&amp;q=http%3A//desktop.google.co.kr/&quot; title=&quot;½±°í ºü¸¥&#10; ³» ÄÄÇ»ÅÍ °Ë»ö&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/span&gt;&lt;span&gt;µ¥½ºÅ©Åé&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a&#10; id=&quot;prod5&quot; href=&quot;http://www.google.com/url?ct=pro&amp;source=kwh&amp;cd=5&amp;q=http%3A//pic&#10;asa.google.co.kr/&quot; title=&quot;ÆíÁý°ú °øÀ¯°¡ ½¬¿î Æ÷Åä¾Ù¹ü&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/spa&#10;n&gt;&lt;span&gt;Picasa&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a id=&quot;prod6&quot; href=&quot;http://www.google.com/url?c&#10;t=pro&amp;source=kwh&amp;cd=6&amp;q=http%3A//kr.youtube.com/&quot; title=&quot;¼¼°èÀûÀÎ µ¿¿µ»ó Ä¿¹Â´ÏƼ&#10;&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/span&gt;&lt;span&gt;YouTube&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;td&gt;&lt;a id=&quot;prod7&quot; href&#10;=&quot;http://www.google.com/url?ct=pro&amp;source=kwh&amp;cd=7&amp;q=http%3A//www.google.com/chro&#10;me/%3Fhl%3Dko&quot; title=&quot;GoogleÀÇ Â÷¼¼´ë À¥ ºê¶ó¿ìÀú&quot;&gt;&lt;span class=&quot;bgp-fr&quot;&gt;&lt;/span&gt;&lt;s&#10;pan&gt;Å©·Ò&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;div id=&quot;tt&quot; class=&quot;tt&quot; style=&quot;display:none&quot;&#10;&gt;&lt;div class=&quot;ttl&quot;&gt;&lt;/div&gt;&lt;div class=&quot;ttc&quot;&gt;&lt;div class=&quot;ttdc&quot;&gt;&lt;div class=&quot;ttdl&quot;&gt;&lt;/di&#10;v&gt;&lt;div class=&quot;ttdr&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;tt-text&quot;&gt;&lt;/div&gt;&lt;div class=&quot;ttdc&quot;&gt;&lt;div&#10; class=&quot;ttdl&quot;&gt;&lt;/div&gt;&lt;div class=&quot;ttdr&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;ttl&quot;&gt;&lt;/div&gt;&lt;d&#10;iv class=&quot;ttvc&quot;&gt;&lt;div class=&quot;ttv&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id=&quot;footer&quot;&gt;&lt;div id=&quot;foot&#10;er_links&quot;&gt;&lt;a href=&quot;/ads/&quot;&gt;±¤°í ÇÁ·Î±×·¥&lt;/a&gt;&lt;span class=&quot;separator&quot;&gt;|&lt;/span&gt;&lt;a hre&#10;f=&quot;/jobs/&quot;&gt;ä¿ëÁ¤º¸&lt;/a&gt;&lt;span class=&quot;separator&quot;&gt;|&lt;/span&gt;&lt;a href=&quot;/about.html&quot;&gt;Goog&#10;le Á¤º¸&lt;/a&gt;&lt;span class=&quot;separator&quot;&gt;|&lt;/span&gt;&lt;a href=&quot;http://www.google.com/ncr&quot;&gt;Go&#10;ogle.com in English&lt;/a&gt;&lt;/div&gt;&lt;div id=&quot;copyright&quot;&gt;&amp;copy;2009 - &lt;a href=&quot;http://www&#10;.google.com/intl/ko/privacy.html&quot;&gt;°³ÀÎÁ¤º¸&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;script src=&quot;/ig/&#10;f/ziANi3Oy40M/intl/ALL_kr/homepage.js&quot;&gt;&lt;/script&gt;&lt;/body&gt;&lt;script&gt;if (!window.google&#10;) { window.google={}; }if (!window.google.kHL) { window.google.kHL=&#039;ko&#039;; }window.&#10;setTimeout(&#039;window.google.ac.install(document.f,document.f.q,&quot;&quot;,true,&quot;´Ý±â&quot;,true,&#10;&quot;&quot;,&quot;&quot;)&#039;,100);&lt;/script&gt;[/geshifilter-html]

diff 를 해 보시면 아시겠지만 차이는 https 접속을 하기 위한 a 태그에서 referer 를 주는 부분을 제외하고는 (google.com 과 google.com/index.html) 동일한 결과를 얻습니다.

--
말할 수 있는 것은 분명하게 말해질 수 있다;
말해질 수 없는 것에 대해서는 침묵해야한다.
논리철학논고 - 루드비히 비트겐슈타인

--
말할 수 있는 것은 분명하게 말해질 수 있다;
말해질 수 없는 것에 대해서는 침묵해야한다.
논리철학논고 - 루드비히 비트겐슈타인

tenazer의 이미지

제 시스템의 차이 때문인지 endofhope님과 같은 코드로 테스트를 해봐도 여전히 다른 결과가 나오네요..

endofhope의 이미지


윈도 머신에 proxy 가 설정되어 있습니까?
그것 외엔 설명하기 어렵네요.

--
말할 수 있는 것은 분명하게 말해질 수 있다;
말해질 수 없는 것에 대해서는 침묵해야한다.
논리철학논고 - 루드비히 비트겐슈타인

--
말할 수 있는 것은 분명하게 말해질 수 있다;
말해질 수 없는 것에 대해서는 침묵해야한다.
논리철학논고 - 루드비히 비트겐슈타인

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.