Re: Net.WebRequest - Close Connection
- From: wawang@xxxxxxxxxxxxxxxxxxxx (Walter Wang [MSFT])
- Date: Mon, 04 Sep 2006 07:16:00 GMT
Hi Jack,
Although you make the webrequest a global variable, but you are recreating
it on each request by Net.WebRequest.Create(strUrl).
To maintain the session after you first logged on, you need to use a
CookieContainer to store the cookies you obtained after the first request
to logon. For more information, see
http://blogs.vbcity.com/drydo/archive/2005/09/27/5556.aspx
Hope this helps. Please feel free to post here if anything is unclear.
Regards,
Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
.
- Follow-Ups:
- Re: Net.WebRequest - Close Connection
- From: Jack
- Re: Net.WebRequest - Close Connection
- References:
- Re: Net.WebRequest - Close Connection
- From: Jack
- Re: Net.WebRequest - Close Connection
- Prev by Date: Multiple Select listbox and sql stored procedure -Help needed
- Next by Date: My.Application.Info.Version showing only 1.0.0.0
- Previous by thread: Re: Net.WebRequest - Close Connection
- Next by thread: Re: Net.WebRequest - Close Connection
- Index(es):
Relevant Pages
|