Traditional Culture Encyclopedia - Almanac inquiry - How to use VB.NET to get web page source code?
How to use VB.NET to get web page source code?
Mark the url as String =“URL "
Dim resources establish persistent connections.
Set the reader to StreamReader = _
Create a new StreamReader(http presp. GetResponseStream,
System. text . encoding . get encoding(-0))
Dimreshtml as string = reader.readtoend ()' reshtml is the source code of the web page.
- Previous article:20 19 what day and constellation does the second day of the sixth lunar month correspond to?
- Next article:Gregorian calendar year 2022
- Related articles
- 20 17 Year of the Rooster 65438+ October
- What do you mean too old?
- Old yellow calendar 2023 nominal age table
- Weddings crowded together in the second half of the year, and the best man and bridesmaid became "hot items"?
- On-line free test 202065438+February 29th Lunar Calendar 1 1 month 15, is it a celebration?
- Lao Huang Li shou si Li yuan
- When did 202 1 year enter? When did 202 1 year enter?
- Why did Zhu Yuanzhang become emperor step by step from a beggar?
- A detailed explanation of Cancer's love fortune in 2022
- What calendar software can remember lunar dates, such as birthdays, and remind them every year until the recorded lunar date?