<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LeVeilleur.net &#187; Internet Explorer</title>
	<atom:link href="http://www.leveilleur.net/index.php/tag/internet-explorer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leveilleur.net</link>
	<description></description>
	<lastBuildDate>Thu, 03 Jun 2010 21:21:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>fr</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>PowerShell :  Save Html, Body, &#8230;.</title>
		<link>http://www.leveilleur.net/index.php/2009/02/10/powershell-save-html-body/</link>
		<comments>http://www.leveilleur.net/index.php/2009/02/10/powershell-save-html-body/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 12:52:02 +0000</pubDate>
		<dc:creator>Christopher Keyaert</dc:creator>
				<category><![CDATA[Non classé]]></category>
		<category><![CDATA[body]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[save]]></category>
		<category><![CDATA[saveas]]></category>

		<guid isPermaLink="false">http://www.leveilleur.net/?p=157</guid>
		<description><![CDATA[Voici trois méthodes permettant de sauver une page web ou plus simplement du code html

# Internetexplorer.application
$obj=New-Object -ComObject internetexplorer.application
$obj.visible=$true
$obj.navigate2("http://www.google.com")
while($obj.ReadyState -ne 4){start-sleep -m 100}
$obj.Document.documentElement.outerHTML

# xml http
$url = "http://www.cnn.com"
$xHTTP = new-object -com msxml2.xmlhttp;
$xHTTP.open("GET",$url,$false);
$xHTTP.send();
$xHTTP.ResponseText; # returns the html doc


# net.webclient
$url="http://www.cnn.com"
$wc = new-object net.webclient
$html = $wc.DownloadString($url)
]]></description>
			<content:encoded><![CDATA[<p>Voici trois méthodes permettant de sauver une page web ou plus simplement du code html<br />
</p>
<pre># Internetexplorer.application
$obj=New-Object -ComObject internetexplorer.application
$obj.visible=$true
$obj.navigate2("http://www.google.com")
while($obj.ReadyState -ne 4){start-sleep -m 100}
$obj.Document.documentElement.outerHTML</pre>
<p></p>
<pre># xml http
$url = "http://www.cnn.com"
$xHTTP = new-object -com msxml2.xmlhttp;
$xHTTP.open("GET",$url,$false);
$xHTTP.send();
$xHTTP.ResponseText; # returns the html doc
</pre>
<p></p>
<pre># net.webclient
$url="http://www.cnn.com"
$wc = new-object net.webclient
$html = $wc.DownloadString($url)</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.leveilleur.net/index.php/2009/02/10/powershell-save-html-body/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PowerShell : Control IE</title>
		<link>http://www.leveilleur.net/index.php/2009/02/03/powershell-control-ie/</link>
		<comments>http://www.leveilleur.net/index.php/2009/02/03/powershell-control-ie/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 21:12:19 +0000</pubDate>
		<dc:creator>Christopher Keyaert</dc:creator>
				<category><![CDATA[powershell]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://www.leveilleur.net/?p=141</guid>
		<description><![CDATA[Voici quelques bouts de code PowerShell permettant le control d&#8217;Internet Explorer
#Rune IE
$ie = new-object -com "InternetExplorer.Application"
$ie.visible = $true
$ie.navigate('http://mypage.com')

#Authentication on the web page
while($ie.busy) {start-sleep 1}
if ($ie.document.getElementByID("FormUsername") -ne $null)
    {
    $ie.document.getElementByID("FormUsername").value = "myLogin"
    $ie.document.getElementByID("FormPassword").value = "MyPwd"

    #Click on the button for logon
    $forms = @($ie.Document.forms &#124; where {$_.action -match "VerifPwd.htm"})
    $forms[0].submit()
    while($ie.busy) {start-sleep 1}
    }

$ie.navigate('http://mypage.com/page2.html')
while($ie.busy) {start-sleep 1} [...]]]></description>
			<content:encoded><![CDATA[<p>Voici quelques bouts de code PowerShell permettant le control d&#8217;Internet Explorer</p>
<pre>#Rune IE
$ie = new-object -com "InternetExplorer.Application"
$ie.visible = $true
$ie.navigate('http://mypage.com')

#Authentication on the web page
while($ie.busy) {start-sleep 1}
if ($ie.document.getElementByID("FormUsername") -ne $null)
    {
    $ie.document.getElementByID("FormUsername").value = "myLogin"
    $ie.document.getElementByID("FormPassword").value = "MyPwd"

    #Click on the button for logon
    $forms = @($ie.Document.forms | where {$_.action -match "VerifPwd.htm"})
    $forms[0].submit()
    while($ie.busy) {start-sleep 1}
    }

$ie.navigate('http://mypage.com/page2.html')
while($ie.busy) {start-sleep 1} 

#Exit IE
$ie.quit()</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.leveilleur.net/index.php/2009/02/03/powershell-control-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
