Jump to content

InetRead problem


Go to solution Solved by sahsanu,

Recommended Posts

Hello !

I make a small script, problem is it does not work properly..

What is the problem ?

Thanks! o:)

#include <String.au3>


$HTMLCODE = BinaryToString(InetRead("http://www.cesarsway.com/channel/dog-training", 1))
ClipPut($HTMLCODE)
If Not @error Then
    $TITLE = _StringBetween($HTMLCODE, "<title>", "</title>")
    If IsArray($TITLE) Then
        $TITLE1 = $TITLE[0]
    Else
        $TITLE1 = "missing title"
    EndIf
    MsgBox(0, "", $TITLE1)
EndIf
Link to comment
Share on other sites

There's no <title></title> tag in the source.

try a different tag...

"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Link to comment
Share on other sites

InetRead is returning the initial html -- but, it appears it redirects to another page.

The initial html does not have title tags.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<script type="text/javascript">
function getCookie(c_name) { // Local function for getting a cookie value
    if (document.cookie.length > 0) {
        c_start = document.cookie.indexOf(c_name + "=");
        if (c_start!=-1) {
        c_start=c_start + c_name.length + 1;
        c_end=document.cookie.indexOf(";", c_start);

        if (c_end==-1)
            c_end = document.cookie.length;

        return unescape(document.cookie.substring(c_start,c_end));
        }
    }
    return "";
}
function setCookie(c_name, value, expiredays) { // Local function for setting a value of a cookie
    var exdate = new Date();
    exdate.setDate(exdate.getDate()+expiredays);
    document.cookie = c_name + "=" + escape(value) + ((expiredays==null) ? "" : ";expires=" + exdate.toGMTString()) + ";path=/";
}
function getHostUri() {
    var loc = document.location;
    return loc.toString();
}
setCookie('YPF8827340282Jdskjhfiw_928937459182JAX666', '174.45.30.8', 10);
try {  
    location.reload(true);  
} catch (err1) {  
    try {  
        location.reload();  
    } catch (err2) {  
        location.href = getHostUri();  
    }  
}
</script>
</head>
<body>
<noscript>This site requires JavaScript and Cookies to be enabled. Please change your browser settings or upgrade your browser.</noscript>
</body>
</html>
Edited by ripdad

"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Link to comment
Share on other sites

The problem is that the page needs javascript and cookies enabled to work:

<body>
<noscript>This site requires JavaScript and Cookies to be enabled. Please change your browser settings or upgrade your browser.</noscript>
</body>

That is the reason InetRead is not "working". If you still want to try to get the source you should try a different approach using WinHTTP or IE functions.

 

Edit: Just an example, anyway, the html source code doesn't contain any <title> so you should review what you need to get from that page.

#include <String.au3>
#include <IE.au3>

Local $oIE = _IECreate("http://www.cesarsway.com/channel/dog-training", 0, 0)
Local $HTMLCODE = _IEBodyReadHTML($oIE)
ClipPut($HTMLCODE)
If Not @error Then
    $TITLE = _StringBetween($HTMLCODE, "<title>", "</title>")
    If IsArray($TITLE) Then
        $TITLE1 = $TITLE[0]
    Else
        $TITLE1 = "missing title"
    EndIf
    MsgBox(0, "", $TITLE1)
EndIf

Cheers,

sahsanu

Edited by sahsanu
Link to comment
Share on other sites

Thanks for the example, I tried this version but does not work properly ...
HTML code of the website you can see that there title.

I think we need another method of taking ..

If you need convincing, check out the site and give clickdreapta and view source.

 

<title>DOG TRAINING - Canine Advice, Tips and Tutorials | Cesar Millan</title>
<!DOCTYPE html>
<html xmlns:fb="http://ogp.me/ns/fb#" xmlns:og="http://opengraphprotocol.org/schema/" xml:lang="en" lang="en" dir="ltr" >

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>DOG TRAINING - Canine Advice, Tips and Tutorials | Cesar Millan</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="canonical" href="http://www.cesarsway.com/channel/dog-training" />
<script src="http://cdn.gigya.com/JS/socialize.js?apikey=3_FAnhrTun2KBss-X9dvGyOV83rOb6Uqdev1SVFV8Bn7dvXWPMAl4d75MXT3d9gcDl" type="text/javascript"></script>
<link rel="alternate" type="application/rss+xml" title="dog training Dog Advice, Tips and Tutorials" href="/channel/dog-training/rss.xml" />
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon" />
<meta name="description" content="A dog's mother begins puppy training from birth. She training puppies to wait for food; she controls when they play and how far they travel. When dog training, adult dogs need these same rules, boundaries, and limitations from you, their pack leader." />
<meta name="keywords" content="dog,canine,puppy training,training puppies,dog training,dogs,dog problems,tips on dog training,secrets to dog training" />
<meta name="copyright" content="Copyright 2013 Cesar Millan Inc. All rights reserved" />
<link rel="canonical" href="http://www.cesarsway.com/channel/dog-training" />
<meta name="revisit-after" content="1 day" />
  <meta Cache-Control: max-age=3600, must-revalidate />
  <meta property="fb:admins" content="740140440"/>
  <meta property="fb:app_id" content="261138217289395"/>
  <meta name="p:domain_verify" content="1839a684f4a4d80e08b8f80f54acaa0d" />
  <meta name="bitly-verification" content="5c9d2ecdb8d8"/>
  <link type="text/css" rel="stylesheet" media="all" href="http://www.cesarsway.com/sites/default/files/css/css_797499c78183e6d2941370695a4db46a.css" />
  <script type="text/javascript" src="/sites/default/files/js/js_0c85e90f4127cdc4165ddd26e1c66511.js"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, {"basePath":"\/","googleanalytics":{"trackOutgoing":1,"trackMailto":1,"trackDownload":1,"trackDownloadExtensions":"7z|aac|arc|arj|asf|asx|avi|bin|csv|doc|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls|xml|z|zip"},"jcarousel":{"ajaxPath":"\/jcarousel\/ajax\/views"},"thickbox":{"close":"Close","next":"Next \u003e","prev":"\u003c Prev","esc_key":"or Esc Key","next_close":"Next \/ Close on last","image_count":"Image !current of !total"},"gigya":{"conf":{"APIKey":"3_FAnhrTun2KBss-X9dvGyOV83rOb6Uqdev1SVFV8Bn7dvXWPMAl4d75MXT3d9gcDl","enabledProviders":"facebook, twitter, google, yahoo, linkedin"}}});
//--><!]]>
</script>
  <!--[if lt IE 9]>
  <script src="/javascript/html5.js"></script>
  <![endif]-->
  <!--www1.cesarsway.com-->
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-1422783-10']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>     
   </head><body class="not-front not-logged-in page-channel one-sidebar sidebar-right">
<div class="site-wrapper">
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=261138217289395";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
    <div id="page">
        <header id="header-main">
            <nav class="nav-top">               <ul class="menu">
                    <li class="leaf first"><a href="https://secure.palmcoastd.com/pcd/eSv?iMagId=27201&i4Ky=IW01" title="Subscribe to Magazine" target="_blank" rel="nofollow">Subscribe to Magazine</a></li>
                    <li class="leaf"><a href="http://www.cesarsway.com/cesar-millan-tv" title="Cesar Millan TV" target="_self">Cesar Millan TV</a></li>
                    <li class="leaf last"><a href="http://www.cesarsway.com/rescueandrehab/foundationnews/about-the-millan-foundation" title="Millan Foundation" target="_blank" rel="nofollow">Millan Foundation</a></li>
                </ul>
                
                <nav class="nav-acct">
                                
                <ul class="links"><li class="menu-587 first"><a href="/cart" title="">My Cart</a></li>
<li class="menu-588"><a href="/user/register" title="">Register</a></li>
<li class="menu-589 last"><a href="/user" title="">Log in</a></li>
</ul>                </nav>
            </nav>
            <div class="clear"></div>
            <div class="bnr-980x60" role="banner">
<script type="text/javascript">
document.write('<scr'+'ipt src="http://ox-d.cesarsway.com/w/1.0/jstag"><\/scr'+'ipt>');
</script>
<script type="text/javascript">
OX.addVariable("channel","DOG TRAINING");
OX.addVariable("subchannel","");
OX.requestAd({"auid":"34592"});
</script><noscript><iframe id="4e3c47c5a420a" name="4e3c47c5a420a" src="http://ox-d.cesarsway.com/w/1.0/afr?auid=34592&cb=INSERT_RANDOM_NUMBER_HERE" frameborder="0" scrolling="no" width="980" height="60"><a href="http://ox-d.cesarsway.com/w/1.0/rc?cs=4e3c47c5a420a&cb=INSERT_RANDOM_NUMBER_HERE" ><img src="http://ox-d.cesarsway.com/w/1.0/ai?auid=34592&cs=4e3c47c5a420a&cb=INSERT_RANDOM_NUMBER_HERE" border="0" alt=""></a></iframe></noscript>


</div>
 
            
            <div class="header-info-right">
                

<form action="/channel/dog-training"  accept-charset="UTF-8" method="post" id="search-block-form">
<div><div class="searchbox">
    
    <div class="form-item field-medium"><input type="text" name="search_block_form" id="edit-search-block-form-1" value="" /></div>
    <div class="form-submit field-short"><input type="submit" name="op" id="edit-submit" value="Search" class="searchbtn" /></div>
    <input type="hidden" name="form_build_id" id="form-f834bc328cf5c8ff293d3893bb55f93a" value="form-f834bc328cf5c8ff293d3893bb55f93a"  />
<input type="hidden" name="form_id" id="edit-search-block-form" value="search_block_form"  />
</div>

</div></form>

            </div>
            
            <div class="header-portrait">
                <a href="/"><img src="/sites/all/themes/cesarsway/images/cesar-portrait.png" /></a>
            </div>
            
            <div class="site-logo">
                <a href="/" title="Home" rel="home" id="logo"><img src="/sites/all/themes/cesarsway/images/new_logo.png" alt="Home" /></a>
            </div>
            
            <div class="header-tagline">Achieving Balance and Harmony</div>
            
            <div class="clear"></div>
        </header><div id="navigation-container">
    <nav class="nav-main">
    <div style="position:absolute; width:5px; height:44px; ; z-index:2;">
       <img src="/sites/all/themes/cesarsway/images/nav/nav-lt-edge.png" width="5" height="44" />
    </div> 
    <div style="position:absolute; width:5px; height:44px; margin-left:1000px; z-index:3;">
        <img src="/sites/all/themes/cesarsway/images/nav/nav-rt-edge.png" width="5" height="44" />
    </div>
    <div style="float: left; width: 24pxX; margin: 8px 8px 0 10px;">
        <a href="/"><img src="/sites/all/themes/cesarsway/images/btn-home.png" /></a>
    </div>
        

<ul class="menu"><li class="expanded first"><a href="/channel/dog-behavior" title="">Dog Behavior</a><div id='secondary-link-container'><ul><li class='leaf first'><a href="/channel/dog-behavior/basics" title="">Basics</a></li><li class='leaf'><a href="/channel/dog-behavior/dog-chewing" title="">Chewing</a></li><li class='leaf'><a href="/channel/dog-behavior/dog-barking" title="">Barking</a></li><li class='leaf'><a href="/channel/dog-behavior/dog-biting" title="">Biting</a></li></ul><ul><li class='leaf'><a href="/channel/dog-behavior/hyper-dog" title="">Hyper Dog</a></li><li class='leaf'><a href="/channel/dog-behavior/dog-anxiety" title="">Anxiety</a></li><li class='leaf'><a href="/channel/dog-behavior/obsessive-dog" title="">Obsession</a></li><li class='leaf'><a href="/channel/dog-behavior/territorial-dog" title="">Territorial</a></li></ul><ul><li class='leaf'><a href="/channel/dog-behavior/dog-aggression" title="">Aggression</a></li><li class='leaf'><a href="/channel/dog-behavior/funny-videos" title="">Funny Videos</a></li><li class='leaf'><a href="/channel/dog-behavior/inspirational-dog-videos" title="">Inspirational Videos</a></li><li class='leaf'><a href="/channel/heartworm-awareness" title="">Heartworm Awareness sponsored by Heartgard</a></li></ul></div></li>
<li class="expanded"><a href="/channel/dog-care" title="">Dog Care</a><div id='secondary-link-container'><ul><li class='leaf first'><a href="/channel/dog-care/dog-nutrition" title="">Nutrition</a></li><li class='leaf'><a href="/channel/dog-care/health" title="">Health</a></li><li class='leaf'><a href="/channel/dog-care/dog-grooming" title="">Grooming</a></li><li class='leaf'><a href="/channel/dog-care/new-dog" title="">New Dog</a></li></ul><ul><li class='leaf'><a href="/channel/dog-care/senior-dog" title="">Senior Dog</a></li><li class='leaf'><a href="/channel/dog-care/housebreaking" title="">Housebreaking</a></li><li class='leaf'><a href="/channel/dog-care/dog-eyes-and-ears" title="">Eyes and Ears</a></li><li class='leaf'><a href="/channel/dog-care/first-aid" title="">First Aid</a></li></ul><ul><li class='leaf'><a href="/channel/skin-care-awareness" title="">Skincare Awareness</a></li></ul></div></li>
<li class="expanded active-trail"><a href="/channel/dog-training" title="" class="active">Dog Training</a><div id='secondary-link-container'><ul><li class='leaf first'><a href="/channel/dog-training/exercise" title="">Exercise</a></li><li class='leaf'><a href="/channel/dog-training/discipline" title="">Discipline</a></li><li class='leaf'><a href="/channel/dog-training/affection" title="">Affection</a></li><li class='leaf'><a href="/channel/dog-training/dog-walk" title="">Dog Walk</a></li></ul><ul><li class='leaf'><a href="/channel/dog-training/the-basics" title="">The Basics</a></li><li class='leaf'><a href="/channel/dog-training/dog-socialization" title="">Socialization</a></li><li class='leaf'><a href="/channel/dog-training/leadership" title="">Leadership</a></li><li class='leaf'><a href="/channel/flea-and-tick-awareness" title="">Flea &amp; Tick Awareness sponsored by Frontline</a></li></ul></div></li>
<li class="expanded"><a href="/channel/dog-rescue" title="">Dog Rescue</a><div id='secondary-link-container'><ul><li class='leaf first'><a href="/channel/dog-rescue/millan-foundation" title="">Millan Foundation</a></li><li class='leaf'><a href="/channel/dog-rescue/adoption-tips" title="">Adoption Tips</a></li><li class='leaf'><a href="/channel/dog-rescue/get-involved" title="">Get Involved</a></li><li class='leaf'><a href="/channel/dog-rescue/rescue-stories" title="">Rescue Stories</a></li></ul><ul><li class='leaf'><a href="/channel/dog-rescue/shelter-stars" title="">Shelter Stars</a></li><li class='leaf'><a href="/channel/dog-rescue/spay-and-neuter" title="">Spay and Neuter</a></li></ul></div></li>
<li class="expanded"><a href="/channel/the-scoop" title="">The Scoop</a><div id='secondary-link-container'><ul><li class='leaf first'><a href="/the-scoop/dog-news/The-Summer-Issue-of-Cesars-Way-Magazine-Hits-the-Stands" title="">In This Issue</a></li><li class='leaf'><a href="/channel/the-scoop/features" title="">Features</a></li><li class='leaf'><a href="/channel/the-scoop/cesar%27s-blog" title="">Cesar&#039;s Blog</a></li><li class='leaf'><a href="/channel/the-scoop/dog-news" title="">Dog News</a></li></ul><ul><li class='leaf'><a href="/channel/the-scoop/photos" title="">Photos</a></li><li class='leaf'><a href="/channel/the-scoop/entertainment" title="">Entertainment</a></li><li class='leaf'><a href="/magazine/marketplace" title="Cesar&#039;s Way Magazine - Advertiser Marketplace">Marketplace</a></li><li class='leaf'><a href="/cesar-millan-live" title="">Cesar Millan LIVE: Coming to Asia, Europe and the USA</a></li></ul></div></li>
<li class="expanded"><a href="/training-cesar%27s-way/Welcome-to-Training-Cesars-Way" title="">Training Cesar&#039;s Way</a><div id='secondary-link-container'><ul><li class='leaf first'><a href="/channel/tcw-fundamentals" title="">TCW Fundamentals</a></li><li class='leaf'><a href="/channel/tcw-clinics" title="">TCW Clinics</a></li><li class='leaf'><a href="/channel/turf-solutions" title="">Turf Solutions sponsored by EasyTurf</a></li></ul></div></li>
<li class="expanded"><a href="/channel/community" title="">Community</a><div id='secondary-link-container'><ul><li class='leaf first'><a href="http://www.cesarsway.com/channel/National-Family-Pack-Walk" title="">Pack Walk</a></li><li class='leaf'><a href="/channel/community/cesar%E2%80%99s-pack" title="">Cesar&#039;s Pack</a></li><li class='leaf'><a href="/channel/community/success-stories" title="">Success Stories</a></li><li class='leaf'><a href="/channel/pack-leaders" title="">Pack Leaders</a></li></ul><ul><li class='leaf'><a href="/channel/community/challenges" title="">Challenges</a></li><li class='leaf'><a href="/channel/community/top-dog" title="">Top Dog</a></li><li class='leaf'><a href="http://www.cesarsway.com/channel/community/sessions" title="">Community Forums</a></li><li class='leaf'><a href="http://www.cesarsway.com/channel/dog-travel" title="">Dog Travel sponsored by Best Western</a></li></ul></div></li>
<li class="expanded"><a href="http://www.cesarsway.com/cesar-millan-tv" title="">Cesar Millan TV</a><div id='secondary-link-container'><ul><li class='leaf first'><a href="http://www.cesarsway.com/cesar-millan-tv/cesar911" title="">Cesar 911</a></li><li class='leaf'><a href="http://www.cesarsway.com/leader-of-the-pack/episode-guide" title="">Leader of the Pack</a></li><li class='leaf'><a href="http://www.cesarsway.com/dogwhisperer/episodearchive" title="">Dog Whisperer</a></li><li class='leaf'><a href="http://www.cesarsway.com/cesar-millan-tv/specials" title="">Specials</a></li></ul></div></li>
<li class="expanded last"><a href="http://www.cesarsway.com/shop" title="Dog Training DVDs, Books, Dog Training Collars, Backpacks, Toys and More.">Shop</a><div id='secondary-link-container'><ul><li class='leaf first'><a href="/shop/new-products" title="">New Products</a></li><li class='leaf'><a href="/shop/combo-packs" title="">Combo Packs</a></li><li class='leaf'><a href="/shop/dog-training-dvds" title="">DVDs</a></li><li class='leaf'><a href="/shop/books" title="">Books</a></li></ul><ul><li class='leaf'><a href="/shop/leashes-and-collars" title="The Illusion Dog Collar &amp; Leash System (Next Generation)">Leashes &amp; Collars</a></li><li class='leaf'><a href="/shop/toys" title="">Toys</a></li><li class='leaf'><a href="/shop/dog-travel" title="">Dog Travel</a></li><li class='leaf'><a href="/shop/supplies" title="">Supplies</a></li></ul><ul><li class='leaf'><a href="/shop/dog-treats" title="">Dog Treats</a></li><li class='leaf'><a href="/shop/dog-health" title="">Dog Health</a></li><li class='leaf'><a href="/shop/apparel" title="">Apparel</a></li><li class='leaf'><a href="http://www.cesarsway.com/shop/gifts" title="">Gifts</a></li></ul><ul><li class='leaf'><a href="/shop/Foundation-Donation" title="Donate to the Millan Foundation">Donate</a></li></ul></div></li>
</ul>
    </nav>
                <nav id="breadcrumbs" class="nav-sublinks"></nav>
            <script type="text/javascript">
                var links = createLinks('dog-training', secondaryLinks['dog-training']);
                $('#breadcrumbs').html(links);
            </script>
    </div>
        <div id="content-body">
                            
                                <aside id="content-side">
                    

<!-- 300x 600 Above The Fold Right Banner -->
<div role="banner" class="side-banner">
<script type="text/javascript">
if (!window.OX_ads) { OX_ads = []; }
OX_ads.push({ "auid" : "271737" });
</script>
<script type="text/javascript">
document.write('<scr'+'ipt src="//ox-d.cesarsway.com/w/1.0/jstag"><\/scr'+'ipt>');
</script>
<noscript><iframe id="5024419439fdf" name="5024419439fdf" src="//ox-d.cesarsway.com/w/1.0/afr?auid=271737&cb=INSERT_RANDOM_NUMBER_HERE" frameborder="0" scrolling="no" width="300" height="600"><a href="http://ox-d.cesarsway.com/w/1.0/rc?cs=5024419439fdf&cb=INSERT_RANDOM_NUMBER_HERE" ><img src="//ox-d.cesarsway.com/w/1.0/ai?auid=271737&cs=5024419439fdf&cb=INSERT_RANDOM_NUMBER_HERE" border="0" alt=""></a></iframe></noscript>
</div>

<!-- 300x250 Top Product Banner -->
<div role="banner" class="side-banner">
<script type="text/javascript">
OX.requestAd({"auid":"34593"});
</script><noscript><iframe id="4f1a0e241079b" name="4f1a0e241079b" src="//ox-d.cesarsway.com/w/1.0/afr?auid=34593&cb=INSERT_RANDOM_NUMBER_HERE" frameborder="0" scrolling="no" width="300" height="250"><a href="http://ox-d.cesarsway.com/w/1.0/rc?cs=4f1a0e241079b&cb=INSERT_RANDOM_NUMBER_HERE" ><img src="//ox-d.cesarsway.com/w/1.0/ai?auid=34593&cs=4f1a0e241079b&cb=INSERT_RANDOM_NUMBER_HERE" border="0" alt=""></a></iframe></noscript>
</div> 

<!-- 300x250 Second on Right Side Banner -->
<div role="banner" class="side-banner">
<script type="text/javascript">
if (!window.OX_ads) { OX_ads = []; }
OX_ads.push({ "auid" : "153183" });
</script>
<script type="text/javascript">
document.write('<scr'+'ipt src="//ox-d.cesarsway.com/w/1.0/jstag"><\/scr'+'ipt>');
</script>
<noscript><iframe id="4f726b6c2c606" name="4f726b6c2c606" src="//ox-d.cesarsway.com/w/1.0/afr?auid=153183&cb=INSERT_RANDOM_NUMBER_HERE" frameborder="0" scrolling="no" width="300" height="250"><a href="http://ox-d.cesarsway.com/w/1.0/rc?cs=4f726b6c2c606&cb=INSERT_RANDOM_NUMBER_HERE" ><img src="//ox-d.cesarsway.com/w/1.0/ai?auid=153183&cs=4f726b6c2c606&cb=INSERT_RANDOM_NUMBER_HERE" border="0" alt=""></a></iframe></noscript>
</div>

<!--Side Newsletter Banner -->
<div role="banner" class="side-banner">

<form id="newsletter-block-form" method="GET" action="/signup">
    <div id="newsletter-block">
        <input id="newsletter-email" onclick="handleNewsletterBlockClick(this)" name="email" type="text" value="Enter e-mail address" />
        <input id="newsletter-submit" type="submit" value="Submit" /> 
    </div>
</form>
</div>

<!-- 300x168 Film Strip Banner -->
<div role="banner" class="side-banner">

  

<script type="text/javascript">
if (!window.OX_ads) { OX_ads = []; }
OX_ads.push({ "auid" : "487736" });
</script>
<script type="text/javascript">
document.write('<scr'+'ipt src="http://ox-d.cesarsway.com/w/1.0/jstag"><\/scr'+'ipt>');
</script>
<noscript><iframe id="524daf3067027" name="524daf3067027" src="http://ox-d.cesarsway.com/w/1.0/afr?auid=487736&cb=INSERT_RANDOM_NUMBER_HERE" frameborder="0" scrolling="no" width="300" height="168"><a href="http://ox-d.cesarsway.com/w/1.0/rc?cs=524daf3067027&cb=INSERT_RANDOM_NUMBER_HERE" ><img src="http://ox-d.cesarsway.com/w/1.0/ai?auid=487736&cs=524daf3067027&cb=INSERT_RANDOM_NUMBER_HERE" border="0" alt=""></a></iframe></noscript>


</div>

  

<!--Sidebar Popular Features -->
<div id="popular_features" class="feed">
             <h3>Popular Articles</h3>
             <div class="view view-sidebar-features-view view-id-sidebar_features_view view-display-id-block_1 view-dom-id-1">
    
  
  
  
        <article>
    
      

          
      <figure class="pop_asidethumb"><a href="/dog-care/senior-dog/7-Reasons-to-Adopt-a-Senior-Dog" class="imagecache imagecache-thumb_75x60 imagecache-linked imagecache-thumb_75x60_linked"><img src="http://www.cesarsway.com/sites/default/files/imagecache/thumb_75x60/images/7-Reasons-to-Adopt-a-Senior-Dog.jpg" alt="" title=""  class="imagecache imagecache-thumb_75x60" width="75" height="60" /></a></figure>
  

          
      <h5><a href="/dog-care/senior-dog/7-Reasons-to-Adopt-a-Senior-Dog">7 Reasons to Adopt a Senior Dog</a></h5>
  

          
      <div class="fb-pop"><div class="fb-like" data-href="http://www.cesarsway.com/dog-care/senior-dog/7-Reasons-to-Adopt-a-Senior-Dog" data-send="false" data-layout="button_count" data-width="60" data-show-faces="true"></div></div>
    
    <div class="clear"></div>
    </article>
    
    
    <article>
    
      

          
      <figure class="pop_asidethumb"><a href="/dog-care/new-dog/How-Much-Is-That-Doggie-In-the-Window" class="imagecache imagecache-thumb_75x60 imagecache-linked imagecache-thumb_75x60_linked"><img src="http://www.cesarsway.com/sites/default/files/imagecache/thumb_75x60/images/How-Much-Is-That-Doggie-In-the-Window.jpg" alt="" title=""  class="imagecache imagecache-thumb_75x60" width="75" height="60" /></a></figure>
  

          
      <h5><a href="/dog-care/new-dog/How-Much-Is-That-Doggie-In-the-Window">Is It Okay to Give a Dog as a Gift?</a></h5>
  

          
      <div class="fb-pop"><div class="fb-like" data-href="http://www.cesarsway.com/dog-care/new-dog/How-Much-Is-That-Doggie-In-the-Window" data-send="false" data-layout="button_count" data-width="60" data-show-faces="true"></div></div>
    
    <div class="clear"></div>
    </article>
    
    
    <article>
    
      

          
      <figure class="pop_asidethumb"><a href="/dog-rescue/adoption-tips/Top-5-Myths-About-Shelter-Dogs" class="imagecache imagecache-thumb_75x60 imagecache-linked imagecache-thumb_75x60_linked"><img src="http://www.cesarsway.com/sites/default/files/imagecache/thumb_75x60/images/nodecroptop-5-myths-about-shelter-dogs.jpg" alt="" title=""  class="imagecache imagecache-thumb_75x60" width="75" height="60" /></a></figure>
  

          
      <h5><a href="/dog-rescue/adoption-tips/Top-5-Myths-About-Shelter-Dogs">Top 5 Myths About Shelter Dogs</a></h5>
  

          
      <div class="fb-pop"><div class="fb-like" data-href="http://www.cesarsway.com/dog-rescue/adoption-tips/Top-5-Myths-About-Shelter-Dogs" data-send="false" data-layout="button_count" data-width="60" data-show-faces="true"></div></div>
    
    <div class="clear"></div>
    </article>
    
    
    <article>
    
      

          
      <figure class="pop_asidethumb"><a href="/dogtraining/socialization/How-To-Approach-Stray-Dogs" class="imagecache imagecache-thumb_75x60 imagecache-linked imagecache-thumb_75x60_linked"><img src="http://www.cesarsway.com/sites/default/files/imagecache/thumb_75x60/images/Approaching-Stray-Dogs.jpg" alt="" title=""  class="imagecache imagecache-thumb_75x60" width="75" height="60" /></a></figure>
  

          
      <h5><a href="/dogtraining/socialization/How-To-Approach-Stray-Dogs">Ask Cesar for Help: How to Approach Stray Dogs</a></h5>
  

          
      <div class="fb-pop"><div class="fb-like" data-href="http://www.cesarsway.com/dogtraining/socialization/How-To-Approach-Stray-Dogs" data-send="false" data-layout="button_count" data-width="60" data-show-faces="true"></div></div>
    
    <div class="clear"></div>
    </article>
    
    
    <article>
    
      

          
      <figure class="pop_asidethumb"><a href="/magazine/nov10/features/The-Rules-of-Adoption" class="imagecache imagecache-thumb_75x60 imagecache-linked imagecache-thumb_75x60_linked"><img src="http://www.cesarsway.com/sites/default/files/imagecache/thumb_75x60/images/FrenchBDogsPups.jpg" alt="" title=""  class="imagecache imagecache-thumb_75x60" width="75" height="60" /></a></figure>
  

          
      <h5><a href="/magazine/nov10/features/The-Rules-of-Adoption">How to Adopt a Dog From A to Z</a></h5>
  

          
      <div class="fb-pop"><div class="fb-like" data-href="http://www.cesarsway.com/magazine/nov10/features/The-Rules-of-Adoption" data-send="false" data-layout="button_count" data-width="60" data-show-faces="true"></div></div>
    
    <div class="clear"></div>
    </article>
    
    
    <article>
    
      

          
      <figure class="pop_asidethumb"><a href="/tips/yournewdog/Before-You-Adopt" class="imagecache imagecache-thumb_75x60 imagecache-linked imagecache-thumb_75x60_linked"><img src="http://www.cesarsway.com/sites/default/files/imagecache/thumb_75x60/images/family-choosing-at-shelter01.jpg" alt="" title=""  class="imagecache imagecache-thumb_75x60" width="75" height="60" /></a></figure>
  

          
      <h5><a href="/tips/yournewdog/Before-You-Adopt">Before You Adopt a Dog</a></h5>
  

          
      <div class="fb-pop"><div class="fb-like" data-href="http://www.cesarsway.com/tips/yournewdog/Before-You-Adopt" data-send="false" data-layout="button_count" data-width="60" data-show-faces="true"></div></div>
    
    <div class="clear"></div>
    </article>
    
    

  
  
  
  
  
  
</div> </div>



<!-- 300x600 Film Strip Banner -->
<div role="banner" class="side-banner">

  

<script type="text/javascript">
OX.requestAd({"auid":"34595","tg" : "_top" });
</script><noscript><iframe id="4e4c180dd9680" name="4e4c180dd9680" src="//ox-d.cesarsway.com/w/1.0/afr?auid=34595&cb=INSERT_RANDOM_NUMBER_HERE&tg=_top" frameborder="0" scrolling="no" width="300" height="600"><a href="http://ox-d.cesarsway.com/w/1.0/rc?cs=4e4c180dd9680&cb=INSERT_RANDOM_NUMBER_HERE" target="_top"><img src="//ox-d.cesarsway.com/w/1.0/ai?auid=34595&cs=4e4c180dd9680&cb=INSERT_RANDOM_NUMBER_HERE" border="0" alt=""></a></iframe></noscript>


</div>

<!-- 300x250 Bottom Page Banner -->
<div role="banner" class="side-banner">
<script type="text/javascript">
OX.requestAd({"auid":"34594"});
</script><noscript><iframe id="4f1a0f719f8a9" name="4f1a0f719f8a9" src="//ox-d.cesarsway.com/w/1.0/afr?auid=34594&cb=INSERT_RANDOM_NUMBER_HERE" frameborder="0" scrolling="no" width="300" height="250"><a href="http://ox-d.cesarsway.com/w/1.0/rc?cs=4f1a0f719f8a9&cb=INSERT_RANDOM_NUMBER_HERE" ><img src="//ox-d.cesarsway.com/w/1.0/ai?auid=34594&cs=4f1a0f719f8a9&cb=INSERT_RANDOM_NUMBER_HERE" border="0" alt=""></a></iframe></noscript>
</div>

                </aside>
                                
                
        <section class="content-wrapper">

<div class="channel-header">    
    <div class="ch-sponsor">
<script type="text/javascript">
OX.requestAd({"auid":"34597"});
</script><noscript><iframe id="4e4c217462431" name="4e4c217462431" src="http://ox-d.cesarsway.com/w/1.0/afr?auid=34597&cb=INSERT_RANDOM_NUMBER_HERE" frameborder="0" scrolling="no" width="125" height="50"><a href="http://ox-d.cesarsway.com/w/1.0/rc?cs=4e4c217462431&cb=INSERT_RANDOM_NUMBER_HERE" ><img src="http://ox-d.cesarsway.com/w/1.0/ai?auid=34597&cs=4e4c217462431&cb=INSERT_RANDOM_NUMBER_HERE" border="0" alt=""></a></iframe></noscript>
    </div>
    <h1>DOG TRAINING</h1>
</div>


<div class="content-pad">
       <article id="channel-lead">
           <div class="view view-channel-primary-view view-id-channel_primary_view view-display-id-block_4 view-dom-id-2">
    
  <div class="channel-video">
      

          
      <center><font size="1">ADVERTISEMENT</font></center>
<span class="LimelightEmbeddedPlayer"><script src="http://assets.delvenetworks.com/player/embed.js"></script><object type="application/x-shockwave-flash" id="limelight_player_528292" name="limelight_player_528292" class="LimelightEmbeddedPlayerFlash" width="320" height="180" data="http://assets.delvenetworks.com/player/loader.swf"><param name="movie" value="http://assets.delvenetworks.com/player/loader.swf" /><param name="wmode" value="window" /><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="true" /><param name="flashVars" value="channelId=0df20bae0952496c9c8b29c45f21f60b&amp;playerForm=57915373e2fd4544afc104a355f9d188&amp;deepLink=true" /></object><script>LimelightPlayerUtil.initEmbed('limelight_player_528292');</script></span>

</div>
</div> <div class="view view-channel-primary-view view-id-channel_primary_view view-display-id-block_1 view-dom-id-3">
    
  
  
  
      
      

          
      <h2><a href="/dogtraining/socialization/The-5-Stages-of-a-Baby-Canine-Friendship-Part-2">The 5 Stages of a Baby-Canine Friendship (Part 2)</a></h2>


  

          
      <p>Last week, we told you about the early stages of the dog and baby relationship. Here is what else you can expect as your toddler matures.


  

          
      <strong><a href="/dogtraining/socialization/The-5-Stages-of-a-Baby-Canine-Friendship-Part-2">Read More</a></strong></p>





  
  
  
  
  
  
</div>        </article>
<div class="view view-channel-primary-view view-id-channel_primary_view view-display-id-block_2 view-dom-id-4">
    
  
  
  
      
    <article class="channel-topstories">
    <figure><a href="/dogtraining/dogwalk/Dog-Walk-Etiquette-Part-One-What-to-Do" class="imagecache imagecache-feature_90x90 imagecache-linked imagecache-feature_90x90_linked"><img src="http://www.cesarsway.com/sites/default/files/imagecache/feature_90x90/images/Walk-FB.jpg" alt="" title=""  class="imagecache imagecache-feature_90x90" width="90" height="90" /></a></figure> <h2><a href="/dogtraining/dogwalk/Dog-Walk-Etiquette-Part-One-What-to-Do">Dog Walk Etiquette Part One: What to Do</a></h2>  <p>Good behavior from our dogs begins with good habits from the humans. Here are some tips on how to behave on the walk.</article>

    <article class="channel-topstories">
    <figure><a href="/training/dogtraining/Dog-Feeding-Tip-Video-1" class="imagecache imagecache-feature_90x90 imagecache-linked imagecache-feature_90x90_linked"><img src="http://www.cesarsway.com/sites/default/files/imagecache/feature_90x90/images/water-tip-1.jpg" alt="" title=""  class="imagecache imagecache-feature_90x90" width="90" height="90" /></a></figure>   <h2><a href="/training/dogtraining/Dog-Feeding-Tip-Video-1">Cesar&#039;s Dog Training Video: Dog Food and Water</a></h2>    <p>How to use feeding time as a special time to bond with your dog.</article>

  
  
  
  
  
  
</div> <div style="clear:both;"></div>
        <article class="channel-sponsor-lead">
            <div class="view view-sponsored-by-view view-id-sponsored_by_view view-display-id-block_1 view-dom-id-5">
    
  
  
  
      
      

          
      <!--/* 650x60 OpenX banner */-->
<script type="text/javascript">
OX.requestAd({"auid":"156852"});
</script><noscript><iframe id="4f4e990d03304" name="4f4e990d03304" src="http://ox-d.cesarsway.com/w/1.0/afr?auid=156852&cb=INSERT_RANDOM_NUMBER_HERE" frameborder="0" scrolling="no" width="650" height="60"><a href="http://ox-d.cesarsway.com/w/1.0/rc?cs=4f4e990d03304&cb=INSERT_RANDOM_NUMBER_HERE" ><img src="http://ox-d.cesarsway.com/w/1.0/ai?auid=156852&cs=4f4e990d03304&cb=INSERT_RANDOM_NUMBER_HERE" border="0" alt="" /></a></iframe></noscript>


  
  
  
  
  
  
</div>         </article>
</div>
</section>
        
                        <section class="content-wrapper">
                    <div id="content-area">
                                                <div class="view view-channel-primary-view view-id-channel_primary_view view-display-id-page_1 view-dom-id-1">
        <div class="view-header">
      <header class="section-header margin-down">
    <h2>LATEST DOG TRAINING ARTICLES </h2>
</header>    </div>
  
  
  
  
      
    <article class="articles-feed">
  

                <figure><a href="/tips/thebasics/problems-on-the-walk" class="imagecache imagecache-feature_150x110 imagecache-linked imagecache-feature_150x110_linked"><img src="http://www.cesarsway.com/sites/default/files/imagecache/feature_150x110/images/DogonleashwithSandaledfeet.jpg" alt="" title=""  class="imagecache imagecache-feature_150x110" width="150" height="110" /></a></figure>
  

                <div class="feed-text-wrapper">
    <h3><a href="/tips/thebasics/problems-on-the-walk">Problems Walking Your Dog?</a></h3>
  

                Cesar's dog walking tips on overcoming pulling or lunging, finding the right collar.
  

                <a href="/tips/thebasics/problems-on-the-walk">Read More</a>
</article>

    <article class="articles-feed">
  

                <figure><a href="/dog-training/dog-socialization/New-Wolves-Old-Tricks" class="imagecache imagecache-feature_150x110 imagecache-linked imagecache-feature_150x110_linked"><img src="http://www.cesarsway.com/sites/default/files/imagecache/feature_150x110/images/new-wolves-old-tricks.jpg" alt="" title=""  class="imagecache imagecache-feature_150x110" width="150" height="110" /></a></figure>
  

                <div class="feed-text-wrapper">
    <h3><a href="/dog-training/dog-socialization/New-Wolves-Old-Tricks">New Wolves, Old Tricks</a></h3>
  

                Scientists discover one ability that dogs lost in their evolutionary journey from wolves to domestic companions.
  

                <a href="/dog-training/dog-socialization/New-Wolves-Old-Tricks">Read More</a>
</article>

    <article class="articles-feed">
  

                <figure><a href="/dogbehavior/barking/What-Your-Dogs-Bark-is-Telling-You" class="imagecache imagecache-feature_150x110 imagecache-linked imagecache-feature_150x110_linked"><img src="http://www.cesarsway.com/sites/default/files/imagecache/feature_150x110/images/what-bark-is-telling-you.jpg" alt="" title=""  class="imagecache imagecache-feature_150x110" width="150" height="110" /></a></figure>
  

                <div class="feed-text-wrapper">
    <h3><a href="/dogbehavior/barking/What-Your-Dogs-Bark-is-Telling-You">What Your Dog’s Bark Is Telling You</a></h3>
  

                Cesar Millan and other dog training experts identify why dogs bark and meaning of dog bark to help you stop dog problem and stop dogs barking.
  

                <a href="/dogbehavior/barking/What-Your-Dogs-Bark-is-Telling-You">Read More</a>
</article>

    <article class="articles-feed">
  

                <figure><a href="/dog-training/the-basics/Reasons-Dogs-End-Up-in-Shelters-Rescue-Series-Pt1" class="imagecache imagecache-feature_150x110 imagecache-linked imagecache-feature_150x110_linked"><img src="http://www.cesarsway.com/sites/default/files/imagecache/feature_150x110/images/Reasons-Dogs-End-Up-in-Shelters.jpg" alt="" title=""  class="imagecache imagecache-feature_150x110" width="150" height="110" /></a></figure>
  

                <div class="feed-text-wrapper">
    <h3><a href="/dog-training/the-basics/Reasons-Dogs-End-Up-in-Shelters-Rescue-Series-Pt1">Reasons Dogs End Up in Shelters</a></h3>
  

                The top ten reasons dogs wind up in animal shelters, and what you can do when faced with any of them.
  

                <a href="/dog-training/the-basics/Reasons-Dogs-End-Up-in-Shelters-Rescue-Series-Pt1">Read More</a>
</article>

    <article class="articles-feed">
  

                <figure><a href="/dog-care/senior-dog/Exercising-Senior-Dogs" class="imagecache imagecache-feature_150x110 imagecache-linked imagecache-feature_150x110_linked"><img src="http://www.cesarsway.com/sites/default/files/imagecache/feature_150x110/images/Cesarthrowingtennisball_DPC_02_0.jpg" alt="" title=""  class="imagecache imagecache-feature_150x110" width="150" height="110" /></a></figure>
  

                <div class="feed-text-wrapper">
    <h3><a href="/dog-care/senior-dog/Exercising-Senior-Dogs">Exercising Senior Dogs</a></h3>
  

                Cesar's advice on how to make sure senior dogs get enough exercise as dogs age and energy levels slow down.
  

                <a href="/dog-care/senior-dog/Exercising-Senior-Dogs">Read More</a>
</article>

    <article class="articles-feed">
  

                <figure><a href="/tips/dogtraining/Cesars-5-Rules-for-Choosing-a-Dog-Trainer" class="imagecache imagecache-feature_150x110 imagecache-linked imagecache-feature_150x110_linked"><img src="http://www.cesarsway.com/sites/default/files/imagecache/feature_150x110/images/_cesars-5-rules-for-choosing-a-dog-trainer.jpg" alt="" title=""  class="imagecache imagecache-feature_150x110" width="150" height="110" /></a></figure>
  

                <div class="feed-text-wrapper">
    <h3><a href="/tips/dogtraining/Cesars-5-Rules-for-Choosing-a-Dog-Trainer">Cesar’s 5 Rules for Choosing a Dog Trainer</a></h3>
  

                “Sit,” “stay,” “come,” and “heel” is not necessarily the first lesson your dog needs. Here's why.
  

                <a href="/tips/dogtraining/Cesars-5-Rules-for-Choosing-a-Dog-Trainer">Read More</a>
</article>

    <article class="articles-feed">
  

                <figure><a href="/dog-training/the-basics/Find-the-Right-Obedience-Class" class="imagecache imagecache-feature_150x110 imagecache-linked imagecache-feature_150x110_linked"><img src="http://www.cesarsway.com/sites/default/files/imagecache/feature_150x110/images/find-the-right-obedience-class_0.jpg" alt="" title=""  class="imagecache imagecache-feature_150x110" width="150" height="110" /></a></figure>
  

                <div class="feed-text-wrapper">
    <h3><a href="/dog-training/the-basics/Find-the-Right-Obedience-Class">Find the Right Obedience Class</a></h3>
  

                Looking for an obedience class? Follow these tips to help you find the right one for your dog or puppy.
  

                <a href="/dog-training/the-basics/Find-the-Right-Obedience-Class">Read More</a>
</article>

    <article class="articles-feed">
  

                <figure><a href="/dog-training/exercise/Find-the-Best-Sport-for-Your-Dog" class="imagecache imagecache-feature_150x110 imagecache-linked imagecache-feature_150x110_linked"><img src="http://www.cesarsway.com/sites/default/files/imagecache/feature_150x110/images/find-the-best-sport-for-your-dog.jpg" alt="" title=""  class="imagecache imagecache-feature_150x110" width="150" height="110" /></a></figure>
  

                <div class="feed-text-wrapper">
    <h3><a href="/dog-training/exercise/Find-the-Best-Sport-for-Your-Dog">The Best Sport for Your Dog</a></h3>
  

                There are a lot of options when it comes to dog sports, but how do you decide which one is right for your dog? Read on and find out!
  

                <a href="/dog-training/exercise/Find-the-Best-Sport-for-Your-Dog">Read More</a>
</article>

    <article class="articles-feed">
  

                <figure><a href="/training/thewalk/6-Tips-for-Mastering-the-Dog-Walk" class="imagecache imagecache-feature_150x110 imagecache-linked imagecache-feature_150x110_linked"><img src="http://www.cesarsway.com/sites/default/files/imagecache/feature_150x110/images/163800327.jpg" alt="" title=""  class="imagecache imagecache-feature_150x110" width="150" height="110" /></a></figure>
  

                <div class="feed-text-wrapper">
    <h3><a href="/training/thewalk/6-Tips-for-Mastering-the-Dog-Walk">6 Tips for Mastering the Dog Walk</a></h3>
  

                Cesar Millan's dog training tips for how to walk your dog and master the dog walk.
  

                <a href="/training/thewalk/6-Tips-for-Mastering-the-Dog-Walk">Read More</a>
</article>

  
  
  
  
      <div class="view-footer">
      <div class="more-topics">
    <a href="http://www.cesarsway.com/keyword/dog-training">
    read more articles</a></div>    </div>
  
  
</div>                  </div>
                </section>
                
                            
            
            
      
            <div style="clear: both;"></div>    
            <aside id="highlights" class="clear">
                

<div class="lower-letterboard">
<script type="text/javascript">
if (!window.OX_ads) { OX_ads = []; }
OX_ads.push({ "auid" : "314352" });
</script>
<script type="text/javascript">
document.write('<scr'+'ipt src="//ox-d.cesarsway.com/w/1.0/jstag"><\/scr'+'ipt>');
</script>
<noscript><iframe id="509afdc326f51" name="509afdc326f51" src="//ox-d.cesarsway.com/w/1.0/afr?auid=314352&cb=INSERT_RANDOM_NUMBER_HERE" frameborder="0" scrolling="no" width="728" height="90"><a href="http://ox-d.cesarsway.com/w/1.0/rc?cs=509afdc326f51&cb=INSERT_RANDOM_NUMBER_HERE" ><img src="//ox-d.cesarsway.com/w/1.0/ai?auid=314352&cs=509afdc326f51&cb=INSERT_RANDOM_NUMBER_HERE" border="0" alt=""></a></iframe></noscript>
</div>
            </aside>
            <div style="clear:both"></div>
        </div>

<section id="ftr-wrap">




<section id="ftr-information"><strong>Company Information</strong><br />
<a href="/privacy">Privacy Policy</a><br />
  <a href="/website-terms-of-use">Terms of Use</a><br />
  <a href="/affiliates">Affiliate Program</a><br />
  <a href="/forms/CM_Advertising_Information.pdf">Advertising Information</a><br />
</section>

<section id="ftr-help">
  <strong>Help</strong><a href="/shop/online-store-policies"></a><br />
  <a href="/shop/online-store-policies">Store Policies</a><br />
  <a href="/faq">FAQ</a><br />
  <a href="/illusion-collar-faq">Illusion Collar FAQ</a><br />
  <a href="/contact">Contact</a><br />
  <a href="/newsletter">Subscribe to Free Newsletter</a><br />
  <a href="https://secure.palmcoastd.com/pcd/eSv?iMagId=27201&i4Ky=IW01">Subscribe to Magazine</a><br />
</section>

<section id="ftr-sponsors">

  

 <strong>We'd like to thank our sponsors</strong><br />

<a href="http://ad.doubleclick.net/click;h=v2|409E|0|0|%2a|q;270749739;0-0;0;96765717;31-1|1;53650406|53565995|1;;;pc=[TPAS_ID]%3fhttp://www.frontline.com/Pages/Offers.aspx" target="_blank" rel="nofollow"><img src="http://www.cesarsway.com/images/footer/125x50_frontline2.jpg" /></a><img src="http://ad.doubleclick.net/imp;v1;f;270749739;0-0;0;96765717;1|1;53650406|53565995|1;;cs=f;pc=[TPAS_ID];%3fhttp://ad.doubleclick.net/dot.gif?[timestamp]" />

   <a href="http://ad.doubleclick.net/clk;272442991;96806985;e;pc=[TPAS_ID]" target="_blank" rel="nofollow"><img src="http://www.cesarsway.com/images/footer/125x50_heartgard2.jpg" /></a><img src="//ad.doubleclick.net/ddm/trackimp/N3271.283777.CESARSWAY.COM/B7473721.12;dc_trk_aid=269507766;dc_trk_cid=53237771;ord=[timestamp]" />

   <a href="http://www.easyturf.com/residential-synthetic-grass/artificial-grass-applications/artificial-dog-grass-dog-urine/" target="_blank" rel="nofollow"><img src="http://www.cesarsway.com/images/footer/125x50_easyturf.jpg" hspace="8" /></a>

   <a href="http://www.bestwestern.com/pets" target="_blank" rel="nofollow"><img src="http://www.cesarsway.com/images/footer/125x50_bestwestern.jpg" hspace="8" /></a><br /><br />


   <a href="http://www.facebook.com/dogwhisperer"><img src="http://www.cesarsway.com/sites/all/themes/cesarsway/images/footer/ftr-bnr-facebook.jpg" width="153" height="43" border="0" /></a>
   <a href="http://twitter.com/#!/cesarmillan"><img src="http://www.cesarsway.com/sites/all/themes/cesarsway/images/footer/ftr_bnr_twitter.jpg" width="130" height="43" border="0" /></a>
   <a href="http://www.youtube.com/user/CesarMillan"><img src="http://www.cesarsway.com/sites/all/themes/cesarsway/images/footer//ftr_bnr_youtube.jpg" width="157" height="43" border="0" /></a><br />

  Copyright 2014 Cesar Millan, Inc. All rights reserved.
  </section>

</section>

        <div id="footer-bottom" class="clear">&nbsp;</div>
    </div>
</div>
    <script type="text/javascript" src="http://www.cesarsway.com/sites/default/files/js/js_c7d381ab193b7095f1176d74a5791646.jsmin.js"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
var _gaq = _gaq || [];_gaq.push(["_setAccount", "UA-1422783-8"]);_gaq.push(['_setCustomVar', 1, "User Role", "anonymous user", 1]);_gaq.push(["_trackPageview"]);(function() {var ga = document.createElement("script");ga.type = "text/javascript";ga.async = true;ga.src = "/sites/default/files/googleanalytics/ga.js?D";var s = document.getElementsByTagName("script")[0];s.parentNode.insertBefore(ga, s);})();
//--><!]]>
</script>
    <!-- Start Quantcast tag -->
    <script type="text/javascript">
    _qoptions={
      qacct:"p-48-XopyWGVbTw"
    };
    </script>
    <script type="text/javascript" src="//secure.quantserve.com/quant.js"></script>
    <noscript>
      <img src="//secure.quantserve.com/pixel/p-48-XopyWGVbTw.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/>
    </noscript>
    <!-- End Quantcast tag -->

<!-- Start of DoubleClick Floodlight Tag: Please do not remove
Activity name of this tag: Cesar Millan Official Website
URL of the webpage where the tag is expected to be placed: http://www.cesarsway.com/
This tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.
Creation Date: 12/09/2011
-->
<script type="text/javascript">
var axel = Math.random() + "";
var a = axel * 10000000000000;
document.write('<iframe src="http://fls.doubleclick.net/activityi;src=2824455;type=dogwh270;cat=cesar136;ord=' + a + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>');
</script>
<noscript>
<iframe src="http://fls.doubleclick.net/activityi;src=2824455;type=dogwh270;cat=cesar136;ord=1?" width="1" height="1" frameborder="0" style="display:none"></iframe>
</noscript>
<!-- End of DoubleClick Floodlight Tag: Please do not remove -->


</div>
</body>
</html>
Edited by incepator
Link to comment
Share on other sites

  • Solution

Change function _IEBodyReadHTML by _IEDocReadHTML and you should get the expected result:

#include <String.au3>
#include <IE.au3>

Local $oIE = _IECreate("http://www.cesarsway.com/channel/dog-training", 0, 0)
Local $HTMLCODE = _IEDocReadHTML($oIE)
ClipPut($HTMLCODE)
If Not @error Then
    $TITLE = _StringBetween($HTMLCODE, "<title>", "</title>")
    If IsArray($TITLE) Then
        $TITLE1 = $TITLE[0]
    Else
        $TITLE1 = "missing title"
    EndIf
    MsgBox(0, "", $TITLE1)
EndIf
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...