<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_Tutorial%2FSocket_Network%2FHttpWebRequest</id>
		<title>VB.Net Tutorial/Socket Network/HttpWebRequest - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.vbex.ru/index.php?action=history&amp;feed=atom&amp;title=VB.Net_Tutorial%2FSocket_Network%2FHttpWebRequest"/>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Socket_Network/HttpWebRequest&amp;action=history"/>
		<updated>2026-04-05T23:13:42Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Socket_Network/HttpWebRequest&amp;diff=3504&amp;oldid=prev</id>
		<title> в 16:40, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Socket_Network/HttpWebRequest&amp;diff=3504&amp;oldid=prev"/>
				<updated>2010-05-26T16:40:30Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 16:40, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Socket_Network/HttpWebRequest&amp;diff=3505&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.vbex.ru/index.php?title=VB.Net_Tutorial/Socket_Network/HttpWebRequest&amp;diff=3505&amp;oldid=prev"/>
				<updated>2010-05-26T12:55:49Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Connection, ConnectionGroupName, ContentLength, ContentType==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Net&lt;br /&gt;
Imports System.Net.Sockets&lt;br /&gt;
Public Class Tester&lt;br /&gt;
    Public Shared Sub Main&lt;br /&gt;
        Dim httpReq As System.Net.HttpWebRequest&lt;br /&gt;
    &lt;br /&gt;
        Try&lt;br /&gt;
          Dim httpURL As New System.Uri(&amp;quot;http://www.vbex.ru/index.htm?key=value&amp;quot;)&lt;br /&gt;
    &lt;br /&gt;
          httpReq = CType(WebRequest.Create(httpURL), HttpWebRequest)&lt;br /&gt;
    &lt;br /&gt;
          If httpReq.Connection &amp;lt;&amp;gt; Nothing Then&lt;br /&gt;
            Console.WriteLine(&amp;quot;Connection: &amp;quot; &amp;amp; httpReq.Connection.ToString)&lt;br /&gt;
          End If&lt;br /&gt;
          If httpReq.ConnectionGroupName &amp;lt;&amp;gt; Nothing Then&lt;br /&gt;
            Console.WriteLine(&amp;quot;ConnectionGroupName: &amp;quot; &amp;amp; httpReq.ConnectionGroupName.ToString)&lt;br /&gt;
          End If&lt;br /&gt;
          If httpReq.ContentLength &amp;lt;&amp;gt; -1 Then&lt;br /&gt;
            Console.WriteLine(&amp;quot;ContentLength: &amp;quot; &amp;amp; httpReq.ContentLength.ToString)&lt;br /&gt;
          End If&lt;br /&gt;
          If httpReq.ContentType &amp;lt;&amp;gt; Nothing Then&lt;br /&gt;
            Console.WriteLine(&amp;quot;ContentType: &amp;quot; &amp;amp; httpReq.ContentType.ToString)&lt;br /&gt;
          End If&lt;br /&gt;
    &lt;br /&gt;
        Catch ex As Exception&lt;br /&gt;
          Console.WriteLine(ex.StackTrace.ToString())&lt;br /&gt;
        End Try&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Create HttpWebRequest==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Net&lt;br /&gt;
Imports System.Net.Sockets&lt;br /&gt;
Public Class Tester&lt;br /&gt;
    Public Shared Sub Main&lt;br /&gt;
        Dim httpReq As System.Net.HttpWebRequest&lt;br /&gt;
    &lt;br /&gt;
        Try&lt;br /&gt;
          Dim httpURL As New System.Uri(&amp;quot;http://www.vbex.ru/index.htm?key=value&amp;quot;)&lt;br /&gt;
    &lt;br /&gt;
          httpReq = CType(WebRequest.Create(httpURL), HttpWebRequest)&lt;br /&gt;
    &lt;br /&gt;
          Console.WriteLine(&amp;quot;Address: &amp;quot; &amp;amp; httpReq.Address.ToString)&lt;br /&gt;
          Console.WriteLine(&amp;quot;AllowAutoRedirect: &amp;quot; &amp;amp; httpReq.AllowAutoRedirect.ToString)&lt;br /&gt;
          Console.WriteLine(&amp;quot;AllowWriteStreamBuffering: &amp;quot; &amp;amp; httpReq.AllowWriteStreamBuffering.ToString)&lt;br /&gt;
          Console.WriteLine(&amp;quot;ClientCertificates: &amp;quot; &amp;amp; httpReq.ClientCertificates.ToString)&lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
        Catch ex As Exception&lt;br /&gt;
          Console.WriteLine(ex.StackTrace.ToString())&lt;br /&gt;
        End Try&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;Address: http://www.vbex.ru/index.htm?key=value&lt;br /&gt;
AllowAutoRedirect: True&lt;br /&gt;
AllowWriteStreamBuffering: True&lt;br /&gt;
ClientCertificates: System.Security.Cryptography.X509Certificates.X509CertificateCollection&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==HaveResponse, IfModifiedSince, KeepAlive, MaximumAutomaticRedirections==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Net&lt;br /&gt;
Imports System.Net.Sockets&lt;br /&gt;
Public Class Tester&lt;br /&gt;
    Public Shared Sub Main&lt;br /&gt;
        Dim httpReq As System.Net.HttpWebRequest&lt;br /&gt;
    &lt;br /&gt;
        Try&lt;br /&gt;
          Dim httpURL As New System.Uri(&amp;quot;http://www.vbex.ru/index.htm?key=value&amp;quot;)&lt;br /&gt;
    &lt;br /&gt;
          httpReq = CType(WebRequest.Create(httpURL), HttpWebRequest)&lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
          Console.WriteLine(&amp;quot;HaveResponse: &amp;quot; &amp;amp; httpReq.HaveResponse.ToString)&lt;br /&gt;
          Console.WriteLine(&amp;quot;IfModifiedSince: &amp;quot; &amp;amp; httpReq.IfModifiedSince.ToString)&lt;br /&gt;
          Console.WriteLine(&amp;quot;KeepAlive: &amp;quot; &amp;amp; httpReq.KeepAlive)&lt;br /&gt;
          Console.WriteLine(&amp;quot;MaximumAutomaticRedirections: &amp;quot; &amp;amp; httpReq.MaximumAutomaticRedirections)&lt;br /&gt;
    &lt;br /&gt;
        Catch ex As Exception&lt;br /&gt;
          Console.WriteLine(ex.StackTrace.ToString())&lt;br /&gt;
        End Try&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;HaveResponse: False&lt;br /&gt;
IfModifiedSince: 11/05/2007 9:42:43 PM&lt;br /&gt;
KeepAlive: True&lt;br /&gt;
MaximumAutomaticRedirections: 50&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==HttpWebResponse and its properties==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Net&lt;br /&gt;
Imports System.Net.Sockets&lt;br /&gt;
Public Class Tester&lt;br /&gt;
    Public Shared Sub Main&lt;br /&gt;
        Dim httpReq As System.Net.HttpWebRequest&lt;br /&gt;
        Dim httpResp As System.Net.HttpWebResponse&lt;br /&gt;
    &lt;br /&gt;
        Try&lt;br /&gt;
          Dim httpURL As New System.Uri(&amp;quot;http://www.vbex.ru&amp;quot;)&lt;br /&gt;
    &lt;br /&gt;
          httpReq = CType(WebRequest.Create(httpURL), HttpWebRequest)&lt;br /&gt;
          httpResp = CType(httpReq.GetResponse(), HttpWebResponse)&lt;br /&gt;
    &lt;br /&gt;
          Console.WriteLine(&amp;quot;CharacterSet: &amp;quot; &amp;amp; httpResp.CharacterSet.ToString)&lt;br /&gt;
          Console.WriteLine(&amp;quot;ContentEncoding: &amp;quot; &amp;amp; httpResp.ContentEncoding.ToString)&lt;br /&gt;
          Console.WriteLine(&amp;quot;ContentLength: &amp;quot; &amp;amp; httpResp.ContentLength.ToString)&lt;br /&gt;
          Console.WriteLine(&amp;quot;ContentType: &amp;quot; &amp;amp; httpResp.ContentType.ToString)&lt;br /&gt;
          Console.WriteLine(&amp;quot;LastModified: &amp;quot; &amp;amp; httpResp.LastModified.ToString)&lt;br /&gt;
          Console.WriteLine(&amp;quot;Method: &amp;quot; &amp;amp; httpResp.Method.ToString)&lt;br /&gt;
          Console.WriteLine(&amp;quot;ProtocolVersion: &amp;quot; &amp;amp; httpResp.ProtocolVersion.ToString)&lt;br /&gt;
          Console.WriteLine(&amp;quot;ResponseUri: &amp;quot; &amp;amp; httpResp.ResponseUri.ToString)&lt;br /&gt;
          Console.WriteLine(&amp;quot;Server: &amp;quot; &amp;amp; httpResp.Server.ToString)&lt;br /&gt;
          Console.WriteLine(&amp;quot;StatusCode: &amp;quot; &amp;amp; httpResp.StatusCode.ToString)&lt;br /&gt;
          Console.WriteLine(&amp;quot;StatusDescription: &amp;quot; &amp;amp; httpResp.StatusDescription.ToString)&lt;br /&gt;
    &lt;br /&gt;
        Catch ex As Exception&lt;br /&gt;
          Console.WriteLine(ex.StackTrace.ToString())&lt;br /&gt;
        End Try&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;CharacterSet: ISO-8859-1&lt;br /&gt;
ContentEncoding:&lt;br /&gt;
ContentLength: 343984&lt;br /&gt;
ContentType: text/html&lt;br /&gt;
LastModified: 17/04/2007 10:07:49 PM&lt;br /&gt;
Method: GET&lt;br /&gt;
ProtocolVersion: 1.1&lt;br /&gt;
ResponseUri: http://www.vbex.ru/&lt;br /&gt;
Server: Apache/2.0.54 (Fedora)&lt;br /&gt;
StatusCode: OK&lt;br /&gt;
StatusDescription: OK&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==MediaType==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Net&lt;br /&gt;
Imports System.Net.Sockets&lt;br /&gt;
Public Class Tester&lt;br /&gt;
    Public Shared Sub Main&lt;br /&gt;
        Dim httpReq As System.Net.HttpWebRequest&lt;br /&gt;
    &lt;br /&gt;
        Try&lt;br /&gt;
          Dim httpURL As New System.Uri(&amp;quot;http://www.vbex.ru/index.htm?key=value&amp;quot;)&lt;br /&gt;
    &lt;br /&gt;
          httpReq = CType(WebRequest.Create(httpURL), HttpWebRequest)&lt;br /&gt;
    &lt;br /&gt;
          If httpReq.MediaType &amp;lt;&amp;gt; Nothing Then&lt;br /&gt;
            Console.WriteLine(&amp;quot;MediaType: &amp;quot; &amp;amp; httpReq.MediaType.ToString)&lt;br /&gt;
          End If&lt;br /&gt;
    &lt;br /&gt;
        Catch ex As Exception&lt;br /&gt;
          Console.WriteLine(ex.StackTrace.ToString())&lt;br /&gt;
        End Try&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Method, PreAuthenticate, ProtocolVersion==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Net&lt;br /&gt;
Imports System.Net.Sockets&lt;br /&gt;
Public Class Tester&lt;br /&gt;
    Public Shared Sub Main&lt;br /&gt;
        Dim httpReq As System.Net.HttpWebRequest&lt;br /&gt;
    &lt;br /&gt;
        Try&lt;br /&gt;
          Dim httpURL As New System.Uri(&amp;quot;http://www.vbex.ru/index.htm?key=value&amp;quot;)&lt;br /&gt;
    &lt;br /&gt;
          httpReq = CType(WebRequest.Create(httpURL), HttpWebRequest)&lt;br /&gt;
    &lt;br /&gt;
          Console.WriteLine(&amp;quot;Method: &amp;quot; &amp;amp; httpReq.Method.ToString)&lt;br /&gt;
          Console.WriteLine(&amp;quot;PreAuthenticate: &amp;quot; &amp;amp; httpReq.PreAuthenticate)&lt;br /&gt;
          Console.WriteLine(&amp;quot;ProtocolVersion: &amp;quot; &amp;amp; httpReq.ProtocolVersion.ToString)&lt;br /&gt;
    &lt;br /&gt;
        Catch ex As Exception&lt;br /&gt;
          Console.WriteLine(ex.StackTrace.ToString())&lt;br /&gt;
        End Try&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;Method: GET&lt;br /&gt;
PreAuthenticate: False&lt;br /&gt;
ProtocolVersion: 1.1&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Referer, RequestUri, RequestUri==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Net&lt;br /&gt;
Imports System.Net.Sockets&lt;br /&gt;
Public Class Tester&lt;br /&gt;
    Public Shared Sub Main&lt;br /&gt;
        Dim httpReq As System.Net.HttpWebRequest&lt;br /&gt;
    &lt;br /&gt;
        Try&lt;br /&gt;
          Dim httpURL As New System.Uri(&amp;quot;http://www.vbex.ru/index.htm?key=value&amp;quot;)&lt;br /&gt;
    &lt;br /&gt;
          httpReq = CType(WebRequest.Create(httpURL), HttpWebRequest)&lt;br /&gt;
    &lt;br /&gt;
          If httpReq.Referer &amp;lt;&amp;gt; Nothing Then&lt;br /&gt;
            Console.WriteLine(&amp;quot;Referer: &amp;quot; &amp;amp; httpReq.Referer.ToString)&lt;br /&gt;
          End If&lt;br /&gt;
    &lt;br /&gt;
          Console.WriteLine(&amp;quot;RequestUri: &amp;quot; &amp;amp; httpReq.RequestUri.ToString)&lt;br /&gt;
    &lt;br /&gt;
          If (httpReq.RequestUri.ToString() &amp;lt;&amp;gt; httpReq.Address.ToString()) Then&lt;br /&gt;
            Console.WriteLine(&amp;quot;URL has been changed.&amp;quot;)&lt;br /&gt;
          End If&lt;br /&gt;
    &lt;br /&gt;
        Catch ex As Exception&lt;br /&gt;
          Console.WriteLine(ex.StackTrace.ToString())&lt;br /&gt;
        End Try&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;pre class=codeResult&amp;gt;RequestUri: http://www.vbex.ru/index.htm?key=value&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==TransferEncoding, UserAgent==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;vbnet&amp;quot;&amp;gt;Imports System.Net&lt;br /&gt;
Imports System.Net.Sockets&lt;br /&gt;
Public Class Tester&lt;br /&gt;
    Public Shared Sub Main&lt;br /&gt;
        Dim httpReq As System.Net.HttpWebRequest&lt;br /&gt;
    &lt;br /&gt;
        Try&lt;br /&gt;
          Dim httpURL As New System.Uri(&amp;quot;http://www.vbex.ru/index.htm?key=value&amp;quot;)&lt;br /&gt;
    &lt;br /&gt;
          httpReq = CType(WebRequest.Create(httpURL), HttpWebRequest)&lt;br /&gt;
    &lt;br /&gt;
          If httpReq.TransferEncoding &amp;lt;&amp;gt; Nothing Then&lt;br /&gt;
            Console.WriteLine(&amp;quot;TransferEncoding: &amp;quot; &amp;amp; httpReq.TransferEncoding.ToString)&lt;br /&gt;
          End If&lt;br /&gt;
    &lt;br /&gt;
          If httpReq.UserAgent &amp;lt;&amp;gt; Nothing Then&lt;br /&gt;
            Console.WriteLine(&amp;quot;UserAgent: &amp;quot; &amp;amp; httpReq.UserAgent.ToString)&lt;br /&gt;
          End If&lt;br /&gt;
    &lt;br /&gt;
        Catch ex As Exception&lt;br /&gt;
          Console.WriteLine(ex.StackTrace.ToString())&lt;br /&gt;
        End Try&lt;br /&gt;
    End Sub&lt;br /&gt;
End Class&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>