1 Replies - 490 Views - Last Post: 22 February 2013 - 06:53 AM Rate Topic: -----

#1 azzura  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 13-May 10

winsock,local proxy server,http header,http response header,

Posted 22 February 2013 - 12:13 AM

Hy everyone.
I want to create a transparent local proxy server.
i have 2 winsock component. first lokal it used to receive incoming connection from browser,etc. and ori, this is used to forward the request to the remote host (i set it to a proxy so the request got forworded onto another proxy server)

so this is the problem.
i receive an invalid response from the remote host. it contain the http response header, but it doesnt have the document (html,etc).
this is my code

 


Dim idx As Integer
Dim ind As String

Private Sub Command1_Click()
idx = idx + 1
Load w(idx)
w(idx).Close
w(idx).Connect "10.1.89.130", "8000"
End Sub



Private Sub w_Connect(Index As Integer)
Dim bug As String
bug = "HEAD http://0.facebook.com/ HTTP/1.1" & vbCrLf
bug = bug & "Keep-Alive: 115" & vbCrLf
bug = bug & "Proxy-Connection: keep-alive" & vbCrLf & vbCrLf & vbCrLf
bug = bug & "GET http://trikgratis.com/ HTTP/1.1" & vbCrLf
'bug = bug & "Host: dieka.xtgem.com"
bug = bug & "Keep-Alive: 115" & vbCrLf
bug = bug & "Proxy-Connection: keep-alive" & vbCrLf & vbCrLf & vbCrLf
w(Index).SendData bug
ind = "socket " & idx & vbCrLf
Text2.Text = Text2.Text & ind & bug
End Sub

Private Sub w_DataArrival(Index As Integer, ByVal bytesTotal As Long)
Dim data As String

w(Index).PeekData data
ind = "socket " & idx & vbCrLf
data = ind & data
Text1.Text = Text1.Text & data
End Sub


this is the example request that i got from lokal and then forwarded on to ori
GET http://trikgratis.com/ HTTP/1.1
Host: trikgratis.com
Proxy-Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.5 Safari/537.31
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: cuid=MTAzNjM3; cups=3be70aed3ca88e53edad754314195abc; __utma=160886392.89757481.1355606837.1355883351.1356150903.4; __utmz=160886392.1355624757.2.2.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided)



and this is the response
HTTP/1.1 200 OK
Date: Fri, 22 Feb 2013 07:06:22 GMT
Server: Apache
Expires: Wed, 13 Jan 2010 00:00:00 GMT
Cache-Control: no-cache
Pragma: no-cache
Vary: Accept-Encoding
Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Content-Encoding: gzip
Set-Cookie: SESID=ef926c099e6d2db08c08997fe5d101aa; path=/
Set-Cookie: hsp2=2636622016.16415.0000; expires=Fri, 22-Feb-2013 07:09:23 GMT; path=/

df6
HTTP/1.1 200 OK
Date: Fri, 22 Feb 2013 07:06:22 GMT
Server: Apache
Expires: Wed, 13 Jan 2010 00:00:00 GMT
Cache-Control: no-cache
Pragma: no-cache
Vary: Accept-Encoding
Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Content-Encoding: gzip
Set-Cookie: SESID=ef926c099e6d2db08c08997fe5d101aa; path=/
Set-Cookie: hsp2=2636622016.16415.0000; expires=Fri, 22-Feb-2013 07:09:23 GMT; path=/

df6



and this is the response should be

HTTP/1.1 200 OK
Cache-Control: private, no-cache, no-store, must-revalidate
Content-Type: application/xhtml+xml; charset=utf-8
Expires: Sat, 01 Jan 2000 00:00:00 GMT
P3P: CP="Facebook does not have a P3P policy. Learn why here: http://fb.me/p3p"
Pragma: no-cache
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 0
X-FB-Debug: eIRGQEu/wVQBQ66WetA1S3xiGQ94++jTmjInv5hmbLI=
Date: Fri, 22 Feb 2013 07:10:55 GMT
Content-Length: 8393
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Set-Cookie: datr=_xknUcpgsK-sP2tuxYsd0sGo; expires=Sun, 22-Feb-2015 07:10:55 GMT; path=/; domain=.facebook.com; httponly
Set-Cookie: m_ts=1361517055; path=/; domain=.facebook.com; httponly
Set-Cookie: reg_ext_ref=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; domain=.facebook.com
Set-Cookie: reg_fb_gate=http%3A%2F%2F0.facebook.com%2F; path=/; domain=.facebook.com
Set-Cookie: reg_fb_ref=http%3A%2F%2F0.facebook.com%2F; path=/; domain=.facebook.com
Set-Cookie: hsp2=2502404288.16415.0000; expires=Fri, 22-Feb-2013 07:13:55 GMT; path=/

socket 1
HTTP/1.1 200 OK
Cache-Control: private, no-cache, no-store, must-revalidate
Content-Type: application/xhtml+xml; charset=utf-8
Expires: Sat, 01 Jan 2000 00:00:00 GMT
P3P: CP="Facebook does not have a P3P policy. Learn why here: http://fb.me/p3p"
Pragma: no-cache
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 0
X-FB-Debug: eIRGQEu/wVQBQ66WetA1S3xiGQ94++jTmjInv5hmbLI=
Date: Fri, 22 Feb 2013 07:10:55 GMT
Content-Length: 8393
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Set-Cookie: datr=_xknUcpgsK-sP2tuxYsd0sGo; expires=Sun, 22-Feb-2015 07:10:55 GMT; path=/; domain=.facebook.com; httponly
Set-Cookie: m_ts=1361517055; path=/; domain=.facebook.com; httponly
Set-Cookie: reg_ext_ref=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; domain=.facebook.com
Set-Cookie: reg_fb_gate=http%3A%2F%2F0.facebook.com%2F; path=/; domain=.facebook.com
Set-Cookie: reg_fb_ref=http%3A%2F%2F0.facebook.com%2F; path=/; domain=.facebook.com
Set-Cookie: hsp2=2502404288.16415.0000; expires=Fri, 22-Feb-2013 07:13:55 GMT; path=/

HTTP/1.1 200 OK
Date: Fri, 22 Feb 2013 07:10:55 GMT
Server: Apache
Expires: Wed, 13 Jan 2010 00:00:00 GMT
Cache-Control: no-cache
Pragma: no-cache
Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Set-Cookie: SESID=e8fb29758d5f9756de18798670b907be; path=/
Set-Cookie: hsp2=2351409344.16415.0000; expires=Fri, 22-Feb-2013 07:13:56 GMT; path=/

2485
<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head><meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/>
<link rel="shortcut icon" href="http://trikgratis.com/favicon.ico" />
<meta name="copyright" content="TRIKGRATIS.COM" />
<meta name="keywords" content="Trik Gratis, Internet, GPRS, MMS, SMS, Telkomsel, Indosat, Exelcomindo, XL, Three, Axis, IM3." />
<meta name="description" content="Trik internet gratis semua operator terdapat di sini. Telkomsel, Indosat, XL, Three, Axis, dll." />
<link rel="alternate" type="application/rss+xml" title="RSS | Berita situs" href="http://trikgratis.com/rss/rss.php" />
<title>TRIKGRATIS.COM</title>
<link rel="stylesheet" href="http://trikgratis.com/theme/default/style.css" type="text/css" />
</head><body><div class="logo"><img src="http://trikgratis.com/theme/default/images/logo.png" alt="Trik Gratis"/><br/><b>The Largest Gretongerz Comsocket 1
HTTP/1.1 200 OK
Cache-Control: private, no-cache, no-store, must-revalidate
Content-Type: application/xhtml+xml; charset=utf-8
Expires: Sat, 01 Jan 2000 00:00:00 GMT
P3P: CP="Facebook does not have a P3P policy. Learn why here: http://fb.me/p3p"
Pragma: no-cache
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 0
X-FB-Debug: eIRGQEu/wVQBQ66WetA1S3xiGQ94++jTmjInv5hmbLI=
Date: Fri, 22 Feb 2013 07:10:55 GMT
Content-Length: 8393
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Set-Cookie: datr=_xknUcpgsK-sP2tuxYsd0sGo; expires=Sun, 22-Feb-2015 07:10:55 GMT; path=/; domain=.facebook.com; httponly
Set-Cookie: m_ts=1361517055; path=/; domain=.facebook.com; httponly
Set-Cookie: reg_ext_ref=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; domain=.facebook.com
Set-Cookie: reg_fb_gate=http%3A%2F%2F0.facebook.com%2F; path=/; domain=.facebook.com
Set-Cookie: reg_fb_ref=http%3A%2F%2F0.facebook.com%2F; path=/; domain=.facebook.com
Set-Cookie: hsp2=2502404288.16415.0000; expires=Fri, 22-Feb-2013 07:13:55 GMT; path=/

HTTP/1.1 200 OK
Date: Fri, 22 Feb 2013 07:10:55 GMT
Server: Apache
Expires: Wed, 13 Jan 2010 00:00:00 GMT
Cache-Control: no-cache
Pragma: no-cache
Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Set-Cookie: SESID=e8fb29758d5f9756de18798670b907be; path=/
Set-Cookie: hsp2=2351409344.16415.0000; expires=Fri, 22-Feb-2013 07:13:56 GMT; path=/

2485
<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head><meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/>
<link rel="shortcut icon" href="http://trikgratis.com/favicon.ico" />
<meta name="copyright" content="TRIKGRATIS.COM" />
<meta name="keywords" content="Trik Gratis, Internet, GPRS, MMS, SMS, Telkomsel, Indosat, Exelcomindo, XL, Three, Axis, IM3." />
<meta name="description" content="Trik internet gratis semua operator terdapat di sini. Telkomsel, Indosat, XL, Three, Axis, dll." />
<link rel="alternate" type="application/rss+xml" title="RSS | Berita situs" href="http://trikgratis.com/rss/rss.php" />
<title>TRIKGRATIS.COM</title>
<link rel="stylesheet" href="http://trikgratis.com/theme/default/style.css" type="text/css" />
</head><body><div class="logo"><img src="http://trikgratis.com/theme/default/images/logo.png" alt="Trik Gratis"/><br/><b>The Largest Gretongerz Community</b></div><div class="bmenu"><a href="http://www.facebook.com/trikgratis" target="_blank" rel="nofollow" style="font-weight: bold;">Become our fan</a>:&nbsp;&nbsp;<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Ftrikgratis&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;font&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe> <a href="https://twitter.com/TrikGratisCom" class="twitter-follow-button" data-show-count="false">Follow @TrikGratisCom</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></div><div class="header"><b>Sabtu, 22 Feb 2013 (14:10 WIB)</b><br />Selamat sore  !</div><hr/><div class="tmn"><img src="http://trikgratis.com/theme/default/images/label.png" alt=""/> <a href="http://trikgratis.com/login.php">Login</a> | <img src="http://trikgratis.com/theme/default/images/label.png" alt=""/> <a href="http://trikgratis.com/registration.php">Daftar</a></div><center><div class="gmenu"></div></center><div class="maintxt"><div class="bmenu"><img src="/images/rss.png" alt=""/> <b>Berita</b></div><div class="news"><b>lomba design TG-Official Tshirt  2013</b><br /><span style="color:green">Buat temen2 yang hobi design/ gambar,<br/>kami tunggu partisipasinya menyumbangkan bakatnya guna pembuatan <span style="color:red"><span style="font-weight: bold;">TG-Official T-Shirt 2013.</span></span><br/>Kami sediakan reward menarik bagi anda dengan syarat dan ketentuan berikut ini :</span><br/><img src="../smileys/user/14/huuu.gif" alt="" /><br/><a href="http://trikgratis.com/forum/index.php?id=738614" rel="nofollow">cekibrot</a></div><div class="news"><b>Pemenang Lomba Kreasi Koleksi SIM CARD Bekas</b><br />Berikut Daftar pemenang lomba kreasi sim card Bekas :<br/><span style="font-weight: bold;"><a href="http://prntscr.com/t30rl" rel="nofollow">-TOP Picture</a></span><br/><span style="font-weight: bold;"><a href="http://prntscr.com/t30mk" rel="nofollow">-TG Banged</a></span><br/><span style="font-weight: bold;"><a href="http://prntscr.com/t30f2" rel="nofollow">-Kreasi Unik</a></span><br/><span style="font-weight: bold;"><a href="http://prntscr.com/t30a4" rel="nofollow">-Kreasi Bebas</a></span><br/>Untuk pemenang TOP Picture masing2 mendapat pulsa senilai @ 30K<br/>dan untuk pemenang kategori lainnya masing2 mendapat pulsa senilai @ 10K<br/>Silahkan menghubungi <a href="http://trikgratis.com/profil/4" rel="nofollow"><span style="font-weight: bold;">admin</span></a> <br/>d <a href="str/news.php">More...</a><br /><a href="../forum/?id=732077">Komentar</a> (357)</div><div class="bmenu"><img src="http://trikgratis.com/images/komunitas.gif" alt="komunitas"/> <b>Komunitas</b></div><div class="menu"><img src="http://trikgratis.com/theme/default/images/icon.gif" alt=""/> <a href="forum/">Forum</a> (1195 / 549124)</div><div class="list1"><img src="http://trikgratis.com/images/np.gif" alt=""/>&nbsp;<a href="/forum/index.php?id=735056">..::: TSEL INET PAKETAN :::..</a>&nbsp;[999]&nbsp;<a href="/forum/index.php?id=735056&amp;clip&amp;page=100#738964">&gt;&gt;</a><div class="sub"> By: DuDuL<br/>Last: xartisx</div></div><div class="list2"><img src="http://trikgratis.com/images/np.gif" alt=""/>&nbsp;<a href="/forum/index.php?id=727820">GRETZ PC XL [19]</a>&nbsp;[2607]&nbsp;<a href="/forum/index.php?id=727820&amp;clip&amp;page=261#738963">&gt;&gt;</a><div class="sub"> By: DuDuL<br/>Last: kreator</div></div><div class="lissocket 1
HTTP/1.1 200 OK
Cache-Control: private, no-cache, no-store, must-revalidate
Content-Type: application/xhtml+xml; charset=utf-8
Expires: Sat, 01 Jan 2000 00:00:00 GMT
P3P: CP="Facebook does not have a P3P policy. Learn why here: http://fb.me/p3p"
Pragma: no-cache
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 0
X-FB-Debug: eIRGQEu/wVQBQ66WetA1S3xiGQ94++jTmjInv5hmbLI=
Date: Fri, 22 Feb 2013 07:10:55 GMT
Content-Length: 8393
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Set-Cookie: datr=_xknUcpgsK-sP2tuxYsd0sGo; expires=Sun, 22-Feb-2015 07:10:55 GMT; path=/; domain=.facebook.com; httponly
Set-Cookie: m_ts=1361517055; path=/; domain=.facebook.com; httponly
Set-Cookie: reg_ext_ref=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; domain=.facebook.com
Set-Cookie: reg_fb_gate=http%3A%2F%2F0.facebook.com%2F; path=/; domain=.facebook.com
Set-Cookie: reg_fb_ref=http%3A%2F%2F0.facebook.com%2F; path=/; domain=.facebook.com
Set-Cookie: hsp2=2502404288.16415.0000; expires=Fri, 22-Feb-2013 07:13:55 GMT; path=/

HTTP/1.1 200 OK
Date: Fri, 22 Feb 2013 07:10:55 GMT
Server: Apache
Expires: Wed, 13 Jan 2010 00:00:00 GMT
Cache-Control: no-cache
Pragma: no-cache
Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Set-Cookie: SESID=e8fb29758d5f9756de18798670b907be; path=/
Set-Cookie: hsp2=2351409344.16415.0000; expires=Fri, 22-Feb-2013 07:13:56 GMT; path=/

2485
<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head><meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/>
<link rel="shortcut icon" href="http://trikgratis.com/favicon.ico" />
<meta name="copyright" content="TRIKGRATIS.COM" />
<meta name="keywords" content="Trik Gratis, Internet, GPRS, MMS, SMS, Telkomsel, Indosat, Exelcomindo, XL, Three, Axis, IM3." />
<meta name="description" content="Trik internet gratis semua operator terdapat di sini. Telkomsel, Indosat, XL, Three, Axis, dll." />
<link rel="alternate" type="application/rss+xml" title="RSS | Berita situs" href="http://trikgratis.com/rss/rss.php" />
<title>TRIKGRATIS.COM</title>
<link rel="stylesheet" href="http://trikgratis.com/theme/default/style.css" type="text/css" />
</head><body><div class="logo"><img src="http://trikgratis.com/theme/default/images/logo.png" alt="Trik Gratis"/><br/><b>The Largest Gretongerz Community</b></div><div class="bmenu"><a href="http://www.facebook.com/trikgratis" target="_blank" rel="nofollow" style="font-weight: bold;">Become our fan</a>:&nbsp;&nbsp;<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Ftrikgratis&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;font&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe> <a href="https://twitter.com/TrikGratisCom" class="twitter-follow-button" data-show-count="false">Follow @TrikGratisCom</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></div><div class="header"><b>Sabtu, 22 Feb 2013 (14:10 WIB)</b><br />Selamat sore  !</div><hr/><div class="tmn"><img src="http://trikgratis.com/theme/default/images/label.png" alt=""/> <a href="http://trikgratis.com/login.php">Login</a> | <img src="http://trikgratis.com/theme/default/images/label.png" alt=""/> <a href="http://trikgratis.com/registration.php">Daftar</a></div><center><div class="gmenu"></div></center><div class="maintxt"><div class="bmenu"><img src="/images/rss.png" alt=""/> <b>Berita</b></div><div class="news"><b>lomba design TG-Official Tshirt  2013</b><br /><span style="color:green">Buat temen2 yang hobi design/ gambar,<br/>kami tunggu partisipasinya menyumbangkan bakatnya guna pembuatan <span style="color:red"><span style="font-weight: bold;">TG-Official T-Shirt 2013.</span></span><br/>Kami sediakan reward menarik bagi anda dengan syarat dan ketentuan berikut ini :</span><br/><img src="../smileys/user/14/huuu.gif" alt="" /><br/><a href="http://trikgratis.com/forum/index.php?id=738614" rel="nofollow">cekibrot</a></div><div class="news"><b>Pemenang Lomba Kreasi Koleksi SIM CARD Bekas</b><br />Berikut Daftar pemenang lomba kreasi sim card Bekas :<br/><span style="font-weight: bold;"><a href="http://prntscr.com/t30rl" rel="nofollow">-TOP Picture</a></span><br/><span style="font-weight: bold;"><a href="http://prntscr.com/t30mk" rel="nofollow">-TG Banged</a></span><br/><span style="font-weight: bold;"><a href="http://prntscr.com/t30f2" rel="nofollow">-Kreasi Unik</a></span><br/><span style="font-weight: bold;"><a href="http://prntscr.com/t30a4" rel="nofollow">-Kreasi Bebas</a></span><br/>Untuk pemenang TOP Picture masing2 mendapat pulsa senilai @ 30K<br/>dan untuk pemenang kategori lainnya masing2 mendapat pulsa senilai @ 10K<br/>Silahkan menghubungi <a href="http://trikgratis.com/profil/4" rel="nofollow"><span style="font-weight: bold;">admin</span></a> <br/>d <a href="str/news.php">More...</a><br /><a href="../forum/?id=732077">Komentar</a> (357)</div><div class="bmenu"><img src="http://trikgratis.com/images/komunitas.gif" alt="komunitas"/> <b>Komunitas</b></div><div class="menu"><img src="http://trikgratis.com/theme/default/images/icon.gif" alt=""/> <a href="forum/">Forum</a> (1195 / 549124)</div><div class="list1"><img src="http://trikgratis.com/images/np.gif" alt=""/>&nbsp;<a href="/forum/index.php?id=735056">..::: TSEL INET PAKETAN :::..</a>&nbsp;[999]&nbsp;<a href="/forum/index.php?id=735056&amp;clip&amp;page=100#738964">&gt;&gt;</a><div class="sub"> By: DuDuL<br/>Last: xartisx</div></div><div class="list2"><img src="http://trikgratis.com/images/np.gif" alt=""/>&nbsp;<a href="/forum/index.php?id=727820">GRETZ PC XL [19]</a>&nbsp;[2607]&nbsp;<a href="/forum/index.php?id=727820&amp;clip&amp;page=261#738963">&gt;&gt;</a><div class="sub"> By: DuDuL<br/>Last: kreator</div></div><div class="list1"><img src="http://trikgratis.com/images/np.gif" alt=""/>&nbsp;<a href="/forum/index.php?id=721201">GRETZ PC TSEL [63]</a>&nbsp;[2955]&nbsp;<a href="/forum/index.php?id=721201&amp;clip&amp;page=296#738962">&gt;&gt;</a><div class="sub"> By: Miss-Lea<br/>Last: Fairfax</div></div><div class="list2"><img src="http://trikgratis.com/images/np.gif" alt=""/>&nbsp;<a href="/forum/index.php?id=738614">Lomba Design TG Official T-Shirt 2013</a>&nbsp;[44]&nbsp;<a href="/forum/index.php?id=738614&amp;clip&amp;page=5#738961">&gt;&gt;</a><div class="sub"> By: acang<br/>Last: acang_</div></div><div class="list1"><img src="http://trikgratis.com/images/np.gif" alt=""/>&nbsp;<a href="/forum/index.php?id=737459">TG-XL Tool</a>&nbsp;[288]&nbsp;<a href="/forum/index.php?id=737459&amp;clip&amp;page=29#738960">&gt;&gt;</a><div class="sub"> By: acang<br/>Last: kreator</div></div><div class="bmenu"><img src="http://trikgratis.com/images/dload.gif" alt="download"/> <b>Download Zone</b></div><div class="menu"><img src="http://trikgratis.com/theme/default/images/icon.gif" alt=""/> <a href="download/">Download</a> (333)</div><div class="bmenu"><img src="http://trikgratis.com/images/media.png" alt="Media"/> <b>Media</b></div><div class="menu"><img src="http://trikgratis.com/theme/default/images/icon.gif" alt=""/> <a href="gallery/">Gallery</a> (633 / <span class="red"><a href="/gallery/index.php?act=new">+1</a></span>)</div><div class="menu"><img src="http://trikgratis.com/theme/default/images/icon.gif" alt=""/> <a href="library/">Library</a> (173)</div><div class="bmenu"><img src="http://trikgratis.com/images/info.png" alt="info"/> <b>Informasi</b></div><div class="menu"><img src="http://trikgratis.com/theme/default/images/icon.gif" alt=""/> <a href="str/news.php">Arsip Berita</a> (60/<span class="red">+1</span>)</div><div class="mensocket 1
HTTP/1.1 200 OK
Cache-Control: private, no-cache, no-store, must-revalidate
Content-Type: application/xhtml+xml; charset=utf-8
Expires: Sat, 01 Jan 2000 00:00:00 GMT
P3P: CP="Facebook does not have a P3P policy. Learn why here: http://fb.me/p3p"
Pragma: no-cache
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 0
X-FB-Debug: eIRGQEu/wVQBQ66WetA1S3xiGQ94++jTmjInv5hmbLI=
Date: Fri, 22 Feb 2013 07:10:55 GMT
Content-Length: 8393
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Set-Cookie: datr=_xknUcpgsK-sP2tuxYsd0sGo; expires=Sun, 22-Feb-2015 07:10:55 GMT; path=/; domain=.facebook.com; httponly
Set-Cookie: m_ts=1361517055; path=/; domain=.facebook.com; httponly
Set-Cookie: reg_ext_ref=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/; domain=.facebook.com
Set-Cookie: reg_fb_gate=http%3A%2F%2F0.facebook.com%2F; path=/; domain=.facebook.com
Set-Cookie: reg_fb_ref=http%3A%2F%2F0.facebook.com%2F; path=/; domain=.facebook.com
Set-Cookie: hsp2=2502404288.16415.0000; expires=Fri, 22-Feb-2013 07:13:55 GMT; path=/

HTTP/1.1 200 OK
Date: Fri, 22 Feb 2013 07:10:55 GMT
Server: Apache
Expires: Wed, 13 Jan 2010 00:00:00 GMT
Cache-Control: no-cache
Pragma: no-cache
Last-Modified: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Set-Cookie: SESID=e8fb29758d5f9756de18798670b907be; path=/
Set-Cookie: hsp2=2351409344.16415.0000; expires=Fri, 22-Feb-2013 07:13:56 GMT; path=/

2485
<?xml version="1.0" encoding="utf-8"?>

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head><meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/>
<link rel="shortcut icon" href="http://trikgratis.com/favicon.ico" />
<meta name="copyright" content="TRIKGRATIS.COM" />
<meta name="keywords" content="Trik Gratis, Internet, GPRS, MMS, SMS, Telkomsel, Indosat, Exelcomindo, XL, Three, Axis, IM3." />
<meta name="description" content="Trik internet gratis semua operator terdapat di sini. Telkomsel, Indosat, XL, Three, Axis, dll." />
<link rel="alternate" type="application/rss+xml" title="RSS | Berita situs" href="http://trikgratis.com/rss/rss.php" />
<title>TRIKGRATIS.COM</title>
<link rel="stylesheet" href="http://trikgratis.com/theme/default/style.css" type="text/css" />
</head><body><div class="logo"><img src="http://trikgratis.com/theme/default/images/logo.png" alt="Trik Gratis"/><br/><b>The Largest Gretongerz Community</b></div><div class="bmenu"><a href="http://www.facebook.com/trikgratis" target="_blank" rel="nofollow" style="font-weight: bold;">Become our fan</a>:&nbsp;&nbsp;<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Ftrikgratis&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;font&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe> <a href="https://twitter.com/TrikGratisCom" class="twitter-follow-button" data-show-count="false">Follow @TrikGratisCom</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script></div><div class="header"><b>Sabtu, 22 Feb 2013 (14:10 WIB)</b><br />Selamat sore  !</div><hr/><div class="tmn"><img src="http://trikgratis.com/theme/default/images/label.png" alt=""/> <a href="http://trikgratis.com/login.php">Login</a> | <img src="http://trikgratis.com/theme/default/images/label.png" alt=""/> <a href="http://trikgratis.com/registration.php">Daftar</a></div><center><div class="gmenu"></div></center><div class="maintxt"><div class="bmenu"><img src="/images/rss.png" alt=""/> <b>Berita</b></div><div class="news"><b>lomba design TG-Official Tshirt  2013</b><br /><span style="color:green">Buat temen2 yang hobi design/ gambar,<br/>kami tunggu partisipasinya menyumbangkan bakatnya guna pembuatan <span style="color:red"><span style="font-weight: bold;">TG-Official T-Shirt 2013.</span></span><br/>Kami sediakan reward menarik bagi anda dengan syarat dan ketentuan berikut ini :</span><br/><img src="../smileys/user/14/huuu.gif" alt="" /><br/><a href="http://trikgratis.com/forum/index.php?id=738614" rel="nofollow">cekibrot</a></div><div class="news"><b>Pemenang Lomba Kreasi Koleksi SIM CARD Bekas</b><br />Berikut Daftar pemenang lomba kreasi sim card Bekas :<br/><span style="font-weight: bold;"><a href="http://prntscr.com/t30rl" rel="nofollow">-TOP Picture</a></span><br/><span style="font-weight: bold;"><a href="http://prntscr.com/t30mk" rel="nofollow">-TG Banged</a></span><br/><span style="font-weight: bold;"><a href="http://prntscr.com/t30f2" rel="nofollow">-Kreasi Unik</a></span><br/><span style="font-weight: bold;"><a href="http://prntscr.com/t30a4" rel="nofollow">-Kreasi Bebas</a></span><br/>Untuk pemenang TOP Picture masing2 mendapat pulsa senilai @ 30K<br/>dan untuk pemenang kategori lainnya masing2 mendapat pulsa senilai @ 10K<br/>Silahkan menghubungi <a href="http://trikgratis.com/profil/4" rel="nofollow"><span style="font-weight: bold;">admin</span></a> <br/>d <a href="str/news.php">More...</a><br /><a href="../forum/?id=732077">Komentar</a> (357)</div><div class="bmenu"><img src="http://trikgratis.com/images/komunitas.gif" alt="komunitas"/> <b>Komunitas</b></div><div class="menu"><img src="http://trikgratis.com/theme/default/images/icon.gif" alt=""/> <a href="forum/">Forum</a> (1195 / 549124)</div><div class="list1"><img src="http://trikgratis.com/images/np.gif" alt=""/>&nbsp;<a href="/forum/index.php?id=735056">..::: TSEL INET PAKETAN :::..</a>&nbsp;[999]&nbsp;<a href="/forum/index.php?id=735056&amp;clip&amp;page=100#738964">&gt;&gt;</a><div class="sub"> By: DuDuL<br/>Last: xartisx</div></div><div class="list2"><img src="http://trikgratis.com/images/np.gif" alt=""/>&nbsp;<a href="/forum/index.php?id=727820">GRETZ PC XL [19]</a>&nbsp;[2607]&nbsp;<a href="/forum/index.php?id=727820&amp;clip&amp;page=261#738963">&gt;&gt;</a><div class="sub"> By: DuDuL<br/>Last: kreator</div></div><div class="list1"><img src="http://trikgratis.com/images/np.gif" alt=""/>&nbsp;<a href="/forum/index.php?id=721201">GRETZ PC TSEL [63]</a>&nbsp;[2955]&nbsp;<a href="/forum/index.php?id=721201&amp;clip&amp;page=296#738962">&gt;&gt;</a><div class="sub"> By: Miss-Lea<br/>Last: Fairfax</div></div><div class="list2"><img src="http://trikgratis.com/images/np.gif" alt=""/>&nbsp;<a href="/forum/index.php?id=738614">Lomba Design TG Official T-Shirt 2013</a>&nbsp;[44]&nbsp;<a href="/forum/index.php?id=738614&amp;clip&amp;page=5#738961">&gt;&gt;</a><div class="sub"> By: acang<br/>Last: acang_</div></div><div class="list1"><img src="http://trikgratis.com/images/np.gif" alt=""/>&nbsp;<a href="/forum/index.php?id=737459">TG-XL Tool</a>&nbsp;[288]&nbsp;<a href="/forum/index.php?id=737459&amp;clip&amp;page=29#738960">&gt;&gt;</a><div class="sub"> By: acang<br/>Last: kreator</div></div><div class="bmenu"><img src="http://trikgratis.com/images/dload.gif" alt="download"/> <b>Download Zone</b></div><div class="menu"><img src="http://trikgratis.com/theme/default/images/icon.gif" alt=""/> <a href="download/">Download</a> (333)</div><div class="bmenu"><img src="http://trikgratis.com/images/media.png" alt="Media"/> <b>Media</b></div><div class="menu"><img src="http://trikgratis.com/theme/default/images/icon.gif" alt=""/> <a href="gallery/">Gallery</a> (633 / <span class="red"><a href="/gallery/index.php?act=new">+1</a></span>)</div><div class="menu"><img src="http://trikgratis.com/theme/default/images/icon.gif" alt=""/> <a href="library/">Library</a> (173)</div><div class="bmenu"><img src="http://trikgratis.com/images/info.png" alt="info"/> <b>Informasi</b></div><div class="menu"><img src="http://trikgratis.com/theme/default/images/icon.gif" alt=""/> <a href="str/news.php">Arsip Berita</a> (60/<span class="red">+1</span>)</div><div class="menu"><img src="http://trikgratis.com/theme/default/images/icon.gif" alt=""/> <a href="index.php?act=users">User List</a> (23787 <span class="red">+62</span>)</div><div class="bmenu"><img src="http://trikgratis.com/images/service.gif" alt="service"/> <b>Layanan</b></div><div class="menu"><img src="http://trikgratis.com/theme/default/images/icon.gif" alt=""/> <a href="http://distro.trikgratis.com/">Distro TG</a></div><div class="menu"><img src="http://trikgratis.com/theme/default/images/icon.gif" alt=""/> <a href="http://fb.trikgratis.com" title="facebook status updater">Update Status Facebook</a></div><div class="menu"><img src="http://trikgratis.com/theme/default/images/icon.gif" alt=""/> <a href="ip/">Cek IP</a></div></div><div class="fmenu"><form action="http://trikgratis.com/go.php" method="post"><div><select name="adres" style="font-size:x-small">
    <option selected="selected">Jalan Pintas</option>
    <option value="news">Berita</option>
    <option value="forum">Forum</option>
    <option value="down">Download</option>
    <option value="gallery">Gallery</option>
    <option value="lib">Library</option>
    </select><input type="submit" value="Go!" style="font-size:x-small"/></div></form></div><center><div class="gmenu"><a href="http://click.buzzcity.net/click.php?partnerid=87969" rel="nofollow"><img src="http://ads.buzzcity.net/show.php?partnerid=87969&get=mweb" alt="" /></a></div></center><div class="footer"><p><font style="color: #75bf00; font-weight:bold;">User online :</font> <a href="http://trikgratis.com/profil/115651"><b>tom_delonk</b></a>, <a href="http://trikgratis.com/profil/103637"><b>Nurarihiyon</b></a>, <a href="http://trikgratis.com/profil/107444"><b>aimputramedia</b></a>, <a href="http://trikgratis.com/profil/9446"><b>gar3si89</b></a>, <a href="http://trikgratis.com/profil/101980"><b>nur_ich</b></a>, <a href="http://trikgratis.com/profil/7186"><b>daicy</b></a>, <a href="http://trikgratis.com/profil/110933"><b>tennosys</b></a>, <a href="http://trikgratis.com/profil/108144"><b>aabbeken</b></a>, <a href="http://trikgratis.com/profil/106015"><b>Sandi53</b></a>, <a href="http://trikgratis.com/profil/109397"><b>Teujing[TG]</b></a>, dan <a href="http://trikgratis.com/str/online.php" style="color: #75bf00; font-weight:bold;">41 user lainnya</a><br /><b>Bingung mau daftar :</b> <a href="http://trikgratis.com/str/online.php?act=guest">50</a> ekor</p></div><div style="text-align:center" class="logo"><p><div style="font-weight: bold;">Copyright &copy; 2013<br/><a href="http://trikgratis.com">TRIKGRATIS.COM</a></div><div><small>Powered by: <a href="http://johncms.com" rel="nofollow">JohnCMS</a></small></div></p></div></body></html>
0




see ?
so why it doesnt contain the html document ?

Is This A Good Question/Topic? 0
  • +

Replies To: winsock,local proxy server,http header,http response header,

#2 modi123_1  Icon User is offline

  • Suitor #2
  • member icon



Reputation: 8897
  • View blog
  • Posts: 33,369
  • Joined: 12-June 08

Re: winsock,local proxy server,http header,http response header,

Posted 22 February 2013 - 06:53 AM

Please do not create duplicate posts.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1