Re: Read source code of a web page
From: UAError (null_at_null.null)
Date: 01/23/05
- Next message: Paulb1us_at_newsgroup.nospam: "insert a unc path to db"
- Previous message: Angel J. Hernández M.: "Re: threads and blocked form"
- In reply to: Nick Malik [Microsoft]: "Re: Read source code of a web page"
- Next in thread: Nick Malik [Microsoft]: "Re: Read source code of a web page"
- Reply: Nick Malik [Microsoft]: "Re: Read source code of a web page"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 22 Jan 2005 20:31:01 -0500
"Nick Malik [Microsoft]" <nickmalik@hotmail.nospam.com>
wrote:
>The advice from UAError is only appropriate if the web site is on YOUR
>computer.
Surely you mean a computer within your domain, not your own
local computer? When I'm wrong, I'm wrong but the latter
would seem so restrictive that it is useless. The sample
How To Use WebClient Class To Make HTTP Requests
http://support.microsoft.com/default.aspx?scid=kb;en-us;328820
states that WebClient supports
- Basic authentication
- Integrated Windows authentication
<snip>
>All subsequent pages on the site require the cookie. Web browsers already
>do this. If a cookie comes from a web site, with instructions for how long
>the cookie should remain in the browser, the browser will automatically pass
>the cookie back to every subsequent request from that web site.
I was under the (now obviously mistaken) impression that
WebClient was like a stripped down browser. I guess I should
have looked for a Cookies or CookieContainer property and
drawn my own conclusions when it wasn't there.
>You have to use the GET and POST methods of the HTTPWebRequest
>class to ask for the login page and to provide the credentials.
You had me confused here until I found the
HttpWebRequest.Method property, which was impossible to find
under "Public Methods" :)
Thanks for straightening this out.
- Next message: Paulb1us_at_newsgroup.nospam: "insert a unc path to db"
- Previous message: Angel J. Hernández M.: "Re: threads and blocked form"
- In reply to: Nick Malik [Microsoft]: "Re: Read source code of a web page"
- Next in thread: Nick Malik [Microsoft]: "Re: Read source code of a web page"
- Reply: Nick Malik [Microsoft]: "Re: Read source code of a web page"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|