Thread: Really strange problem with proxies.

  1. #1
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158

    Really strange problem with proxies.

    When I call this code
    Code:
    InternetOpen(pszAgent, INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, 0);
    I get
    PHP Code:
    <html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><title>Google</title><style><!--
    body,td,a,p,.h{font-family:arial,sans-serif}
    .
    h{font-size:20px}
    .
    h{color:#3366cc}
    .q{color:#00c}
    .ts td{padding:0}.ts{border-collapse:collapse}#gbar{float:left;font-weight:bold;height:22px;padding-left:2px}#gbh{border-top:1px solid #c9d7f1;font-size:0;height:0;position:absolute;right:0;top:24px;width:200%}#gbi{background:#fff;border:1px solid;border-color:#c9d7f1 #36c #36c #a2bae7;font-size:13px;top:24px;z-index:1000}#guser{padding-bottom:7px !important}#gbar,#guser{font-size:13px;padding-top:1px !important}.gb1,.gb3{display:inline;height:22px;margin-right:1em;vertical-align:top}#gbi,.gb2{display:none;position:absolute;width:7em}.gb2{z-index:1001}#gbar a,#gbar a:active,#gbar a:visited{color:#00c;font-weight:normal}.gb2 a,.gb3 a{text-decoration:none}.gb2 a{display:block;padding:.2em .5em}#gbar .gb2 a:hover{background:#36c;color:#fff}--></style>
    <script>
    <!--
    window.google={kEI:"O9nZRrbXG4GoQovmlPcF",kEXPI:"17259,17497,17584,52206",kHL:"en"};function sf(){document.f.q.focus();}
    window.gbar={};(function(){;var h=window.gbar,a,g,f;function m(b,e,d){b.display=b.display=="block"?"none":"block";b.left=e+"px";b.top=d+"px"}h.tg=function(b){var e=0,d,c,i,j=0,k=window.navExtra;!g&&(g=document.getElementById("gbar"));!f&&(f=g.getElementsByTagName("div"));(b||window.event).cancelBubble=true;if(!a){a=document.createElement(Array.every||window.createPopup?"iframe":"div");a.frameBorder="0";a.id="gbi";a.scrolling="no";a.src="#";document.body.appendChild(a);if(k)for(var n in k){var l=document.createElement("div");l.appendChild(k[n]);l.className="gb2";g.appendChild(l)}document.onclick=h.close}for(;f[j];j++){c=f[j];i=c.className;if(i=="gb3"){d=c.offsetLeft;while(c=c.offsetParent)d+=c.offsetLeft;m(a.style,d,24)}else if(i=="gb2"){m(c.style,d+1,25+e);e+=20}}a.style.height=e+"px"};h.close=function(b){a&&a.style.display=="block"&&h.tg(b)};})();// -->
    </script>
    </head><body bgcolor=#ffffff text=#000000 link=#0000cc vlink=#551a8b alink=#ff0000 onload="sf();if(document.images){new Image().src='/images/nav_logo3.png'}" topmargin=3 marginheight=3><div id=gbar><nobr><div class=gb1>Web</a></div><div class=gb1><a href=http://images.google.com/imghp?tab=wi>Images</a></div><div class=gb1><a href=http://video.google.com/?tab=wv>Video</a></div><div class=gb1><a href=http://news.google.com/nwshp?tab=wn>News</a></div><div class=gb1><a href=http://maps.google.com/maps?tab=wl>Maps</a></div><div class=gb1><a href=http://mail.google.com/mail?tab=wm>Gmail</a></div><div class=gb3><a href=http://www.google.com/intl/en/options/ onclick="this.blur();gbar.tg(event);return false"><u>more</u> <span style=font-size:11px>▼</span></a></div><div class=gb2><a href=http://blogsearch.google.com/?tab=wb>Blog Search</a></div><div class=gb2><a href=http://www.blogger.com/?tab=wj>Blogger</a></div><div class=gb2><a href=http://books.google.com/bkshp?tab=wp>Books</a></div><div class=gb2><a href=http://www.google.com/calendar?tab=wc>Calendar</a></div><div class=gb2><a href=http://docs.google.com/?tab=wo>Documents</a></div><div class=gb2><a href=http://finance.google.com/finance?tab=we>Finance</a></div><div class=gb2><a href=http://groups.google.com/grphp?tab=wg>Groups</a></div><div class=gb2><a href=http://labs.google.com/>Labs</a></div><div class=gb2><a href=http://www.orkut.com/?tab=w0>Orkut</a></div><div class=gb2><a href=http://www.google.com/ptshp?tab=wt>Patents</a></div><div class=gb2><a href=http://picasaweb.google.com/home?tab=wq>Photos</a></div><div class=gb2><a href=http://www.google.com/prdhp?tab=wf>Products</a></div><div class=gb2><a href=http://www.google.com/reader?tab=wy>Reader</a></div><div class=gb2><a href=http://scholar.google.com/schhp?tab=ws>Scholar</a></div></nobr></div><div id=gbh></div><div align=right id=guser style="font-size:84%;padding:0 0 4px" width=100%><nobr><a href="/url?sa=p&pref=ig&pval=3&q=http://www.google.com/ig%3Fhl%3Den&usg=AFQjCNEj49wK5T88bDwGcaZsW52jiYwJwg">iGoogle</a> | <a href="https://www.google.com/accounts/Login?continue=http://www.google.com/&hl=en">Sign in</a></nobr></div><center><br clear=all id=lgpd><img alt="Google" height=110 src="/intl/en_ALL/images/logo.gif" width=276><br><br><form action="/search" name=f><table cellpadding=0 cellspacing=0><tr valign=top><td width=25%>&nbsp;</td><td align=center nowrap><input name=hl type=hidden value=en><input type=hidden name=ie value="ISO-8859-1"><input maxlength=2048 name=q size=55 title="Google Search" value=""><br><input name=btnG type=submit value="Google Search"><input name=btnI type=submit value="I'm Feeling Lucky"></td><td nowrap width=25%><font size=-2>&nbsp;&nbsp;<a href=/advanced_search?hl=en>Advanced Search</a><br>&nbsp;&nbsp;<a href=/preferences?hl=en>Preferences</a><br>&nbsp;&nbsp;<a href=/language_tools?hl=en>Language Tools</a></font></td></tr></table></form><br><br><font size=-1><a href="/intl/en/ads/">Advertising&nbsp;Programs</a> - <a href="/services/">Business Solutions</a> - <a href="/intl/en/about.html">About Google</a></font><p><font size=-2>&copy;2007 Google</font></p></center></body></html> 
    But when I call it with proxies like so
    Code:
    InternetOpen(pszAgent, INTERNET_OPEN_TYPE_PROXY, pszProxies, "<local>", 0);
    I get this
    PHP Code:
    <html>
    <
    html>
    <
    title>cPanel&reg;</title>
    <
    META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    <
    style type="text/css">
    body {
        
    font-familyVerdanaArialHelveticasans-serif;
        
    font-size12px;
        
    background-color:#367E8E;
        
    scrollbar-base-color#005B70;
        
    scrollbar-arrow-color#F3960B;
        
    scrollbar-DarkShadow-Color#000000;
        
    color#FFFFFF;
    }
    color:#021f25; text-decoration:none}
    h1 {
        
    font-size18px;
        
    color#FB9802;
        
    padding-bottom10px;
        
    background-imageurl(sys_cpanel/images/bottombody.jpg);
        
    background-repeatrepeat-x;
        
    padding-left15px;
    }
    #body-content p {
        
    padding-left25px;
        
    padding-right25px;
        
    line-height18px;
        
    padding-top5px;
        
    padding-bottom5px;
    }
    h2 {
        
    font-size14px;
        
    font-weightbold;
        
    color#FF9900;
        
    padding-left15px;
    }
    </
    style>
    </
    head>
    <
    body>
    <
    div id="body-content">  
    <
    h1>Great Success <i>!</i>
    <
    br />
    Apache is working on your cPanel<sup>&reg;</sup> and WHM&#8482; Server</h1>
    <p>If you can see this pagethen the people who manage this server have installed 
    <a href="http://www.cpanel.net">cPanel and WebHost Manager (WHM)</awhich use the 
    <a href="http://www.apache.org/">Apache Web server</asoftware and the 
    <a href="http://www.modssl.org/">Apache Interface to OpenSSL (mod_ssl)</asuccessfully
    They now have to add content to this directory and replace this placeholder page, or else 
    point the server at their real content.</p>

    <
    h2>ATTENTION!</h2>
    <
    p>If you are seeing this page instead of the site you expectedplease <strong>contact the
    administrator of the site involved
    .</strong> (Try sending an email to 
    <samp>&lt;webmaster@<em>domain</em>&gt;</samp>.) Although this site is running cPanel
    WebHost Manager, and Apache software it almost certainly has no other connection to cPanel Inc.
    or 
    the Apache GroupPlease do not send mail about this site or its contents to cPanel Inc.
    or 
    the Apache Group.</p>
      
    <
    h2>About cPanel:</h2>
    <
    p>cPanel is a leading provider of software for the webhosting industry. If you would like 
    to learn more about cPanel please visit our website at 
    <a href="http://www.cpanel.net/">www.cpanel.net</a>.
    Please be advised that cPanel Incis not a web hosting company, and as such has no control over
    content found elsewhere on this site
    .</p>

    <
    h2>About Apache HTTP Server:</h2>
    <
    p>The Apache HTTP Server is an open source web server which powers many of the worlds web sites.
    The Apache HTTP server is part of the Apache Group's many influential projects. Their efforts have 
    helped shape much the world wide web, and they continue to be a dominating force in the web hosting 
    industry.</p>
    </div>
    <table width="70%" align="center">
        <tr>
            <td align="center"><img src="sys_cpanel/images/powered_by.gif" /></td>
            <td align="center"><img src="sys_cpanel/images/apache_pb.gif" /></td>
        </tr>
    </table>
    <!-- REVISION: 1.3 -->
    </BODY>
    </HTML> 
    What in the world?

  2. #2
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    It's like the apache server on google knows I'm using a proxy right then, so it acts like google is empty, I know this isn't the case, but that's what it looks like. Please help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Strange problem with GETLINE
    By wco5002 in forum C++ Programming
    Replies: 13
    Last Post: 07-07-2008, 09:57 AM
  2. Strange problem
    By G4B3 in forum C Programming
    Replies: 6
    Last Post: 05-14-2008, 02:07 PM
  3. Strange problem with classes in header files
    By samGwilliam in forum C++ Programming
    Replies: 2
    Last Post: 02-29-2008, 04:55 AM
  4. Strange problem
    By ~Kyo~ in forum Game Programming
    Replies: 0
    Last Post: 02-14-2006, 10:35 PM