C# HtmlRequest and Javascript
Posted
by
TechByte
on Stack Overflow
See other posts from Stack Overflow
or by TechByte
Published on 2014-06-09T15:21:06Z
Indexed on
2014/06/09
15:24 UTC
Read the original article
Hit count: 418
Is there anyway to get the same web source with c# as using Firebug? My source code is shown below. When I saved this, loaded with Firefox I couldn't get the same source as with Firebug. Are there any libraries that can help me to get all data?
<html lang="pl" xml:lang="pl" xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://ogp.me/ns#">
<head>
<meta property="og:title" content="Mitchel Official FanPage "/><meta property="og:type" content="website"/><meta property="og:url" content="http://facebook.com/MitchelOfficiall"/>
<meta property="og:locale" content="pl_PL"/><meta property="og:site_name" content="Mitchel Official FanPage "/><meta property="og:description" content="Mitchel Official FanPage "/>
<meta content="pl" http-equiv="Content-Language" />
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<meta content="text/javascript" http-equiv="Content-Script-Type" />
<title>Mitchel Official FanPage </title>
<style>
body {
overflow: hidden;
}
</style>
</head>
<body>
<div id="fb-root">
</div>
<script>
window.fbAsyncInit = function() {
FB.init({appId: '0', status: true, cookie: true,xfbml: true});
FB.Event.subscribe("edge.create", function(targetUrl) {
save(1);
});
FB.Event.subscribe("edge.remove", function(targetUrl) {
save(0);
});
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = 'http://connect.facebook.net/pl_PL/all.js';
document.getElementById('fb-root').appendChild(e);
}());
function save(x)
{
setTimeout('save2('+x+')',1000);
}
function save2(x)
{
document.location='http://www.likeplus.eu/post/saver?l=pl&t=112499|71272|00cb6c3576a64115878087272c970f751a0418f2e3d7440ca7c84c70b1d91ddb|8904e5cf28544785a42366aa89401017|'+x+'&h='+document.domain;
}
</script>
<div class="fb-like" data-href="http://facebook.com/MitchelOfficiall" data-layout="button_count" data-send="false" data-show-faces="false" data-width="120"></div>
</body>
</html>
© Stack Overflow or respective owner