File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
docs/snippets/cpp/VS_Snippets_Misc
system.net.httpwebrequest.addrange2/cpp
system.net.httpwebrequest.addrange/cpp Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
This program demonstrates 'AddRange(int, int)' method of 'HttpWebRequest class.
3
3
A new 'HttpWebRequest' Object* is created.The number of characters of the response to be received can be
4
4
restricted by the 'AddRange' method.By calling 'AddRange(50, 150)' on the 'HttpWebRequest' Object* the content
5
- of the response page is restricted from the 50th character to 150th charater .The response of the request is
5
+ of the response page is restricted from the 50th character to 150th character .The response of the request is
6
6
obtained and displayed to the console.
7
7
*/
8
8
Original file line number Diff line number Diff line change 2
2
This program demonstrates 'AddRange(int, int)' method of 'HttpWebRequest class.
3
3
A new 'HttpWebRequest' Object* is created.The number of characters of the response to be received can be
4
4
restricted by the 'AddRange' method.By calling 'AddRange(50, 150)' on the 'HttpWebRequest' Object* the content
5
- of the response page is restricted from the 50th character to 150th charater .The response of the request is
5
+ of the response page is restricted from the 50th character to 150th character .The response of the request is
6
6
obtained and displayed to the console.
7
7
*/
8
8
@@ -36,7 +36,7 @@ int main()
36
36
StreamReader^ streamRead = gcnew StreamReader ( streamResponse );
37
37
array<Char>^ readBuffer = gcnew array<Char>(256 );
38
38
int count = streamRead->Read ( readBuffer, 0 , 256 );
39
- Console::WriteLine ( " \n The HTML contents of the page from 50th to 150 charaters are :\n " );
39
+ Console::WriteLine ( " \n The HTML contents of the page from 50th to 150 characters are :\n " );
40
40
while ( count > 0 )
41
41
{
42
42
String^ outputData = gcnew String ( readBuffer,0 ,count );
You can’t perform that action at this time.
0 commit comments