Get web page source with MFC

Intrebari legate de programarea cu biblioteci precum MFC, ATL, WTL si GDI+.
Post Reply
mesajflaviu
Membru++
Membru++
Posts: 688
Joined: 10 Sep 2008, 21:40
Judet: Cluj

Get web page source with MFC

Post by mesajflaviu » 15 May 2018, 14:07

Buna. Ma tot chinui sa aduc codul web de pe pagina de coduri fiscale de pe mfinante.ro. Problema e ca atunci cand incerci sa aduci pagina respectiva de pe site, partea de body nu este adusa.


Pagina pe care incerc s-o aduc este aici: http://mfinante.ro/infocodfiscal.html?cod=111

cand incarc pagina in browser, totul este ok, cand aduc pagina cu CInternetSession::OpenURL, sau cu CHtmlView::GetSource, rezultatul este fara partea de <body>

Code: Select all

<!DOCTYPE html>

<html><head>

<meta http-equiv="Pragma" content="no-cache"/>

<meta http-equiv="Expires" content="-1"/>

<meta http-equiv="CacheControl" content="no-cache"/>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

<link rel="shortcut icon" href="data:;base64,iVBORw0KGgo="/>



<script>



(function(){

    var securemsg;

    var dosl7_common;




window.KBov=!!window.KBov;try{(function(){try{var ll,Ll,Ol=1,Sl=1,il=1,jl=1,Jl=1;for(var ZL=0;ZL<Ll;++ZL)Ol+=2,Sl+=2,il+=2,jl+=2,Jl+=3;ll=Ol+Sl+il+jl+Jl;window.JL===ll&&(window.JL=++ll)}catch(sL){window.JL=ll}var iL=!0;function lo(l){!l||document.visibilityState&&"visible"!==document.visibilityState||(iL=!1,document.cookie="brav=ad");return iL}function Lo(){}lo(window[Lo.name]===Lo);lo("function"!==typeof ie9rgb4);lo(/\x3c/.test(function(){return"\x3c"})&!/x3d/.test(function(){return"'x3'+'d';"}));

var Oo=window.attachEvent||/mobi/i.test(window["\x6e\x61vi\x67a\x74\x6f\x72"]["\x75\x73e\x72A\x67\x65\x6et"]),Io=+new Date+6E5,lO,LO,oO,zO=setTimeout,ZO=Oo?3E4:6E3;function SO(){if(!document.querySelector)return!0;var l=+new Date,z=l>Io;if(z)return lo(!1);z=LO&&!oO&&lO+ZO<l;z=lo(z);lO=l;LO||(LO=!0,zO(function(){LO=!1},1));return z}SO();

document.addEventListener&&document.addEventListener("visibilitychange",function(l){document.visibilityState&&("hidden"===document.visibilityState&&l.isTrusted?oO=!0:"visible"===document.visibilityState&&(lO=+new Date,oO=!1,SO()))});var iO=[17795081,27611931586,1558153217];function jO(l){l="string"===typeof l?l:l.toString(36);var z=window[l];if(!z.toString)return;var s=""+z;window[l]=function(l,s){LO=!1;return z(l,s)};window[l].toString=function(){return s}}for(var JO=0;JO<iO.length;++JO)jO(iO[JO]);



})();



</script>



<script type="text/javascript" src="/TSPD/08b919fd7aab200047a61aa409c2e6d600e069e74eb7044d6800f6e68db33d85b37ab015d70c1c5d?type=8"></script>



<script>



(function(){

    var securemsg;

    var dosl7_common;



window["blobfp"] = "1111111110112000003e825d0550f830000004a71d70c295b19a7f2005afaa33b00001c20eac9549cdc897b01acfc003937e6e0f02eceda17300000020http://re.security.f5aas.com/re/";





})();



</script>



<script type="text/javascript" src="/TSPD/08b919fd7aab200047a61aa409c2e6d600e069e74eb7044d6800f6e68db33d85b37ab015d70c1c5d?type=11"></script>

<noscript>Please enable JavaScript to view the page content.</noscript>

</head><body>

</body></html>
Imi puteti da o sugestie cu privire la acest task ? Sau poate ati facut ceva similar ...



Post Reply