Re: Retrieve Form Key-Values from HttpWebResponse
From: Joerg Jooss (joerg.jooss_at_gmx.net)
Date: 09/21/04
- Next message: Hermit Dave: "Re: question"
- Previous message: simon: "Re: ImageButton"
- In reply to: Erik Jensen: "Retrieve Form Key-Values from HttpWebResponse"
- Next in thread: Erik Jensen: "Re: Retrieve Form Key-Values from HttpWebResponse"
- Reply: Erik Jensen: "Re: Retrieve Form Key-Values from HttpWebResponse"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 21 Sep 2004 16:24:46 +0200
Erik Jensen wrote:
> I have implemented HttpWebRequest and then coded HttpWebResponse
> which reads into a stream and then into a string.
>
> By using the resultant string, stream, or Response, how do I get key
> value pairs for the response form variables. Is it within
> Response.Headers["FormKey1"].ToString()?
No, HttpWebResponse itself is completely agnostic to what it contains -- it
could be anything from a HTML document to a MP3 file.
> or, do I work from the string which was the end result after my
> Stream.ReadToEnd()?
Yes, you need to search through the HTML document. Have a look at this blog
entry, it could be helpful in your case:
http://blogs.msdn.com/smourier/archive/2003/06/04/8265.aspx
Cheers,
-- Joerg Jooss joerg.jooss@gmx.net
- Next message: Hermit Dave: "Re: question"
- Previous message: simon: "Re: ImageButton"
- In reply to: Erik Jensen: "Retrieve Form Key-Values from HttpWebResponse"
- Next in thread: Erik Jensen: "Re: Retrieve Form Key-Values from HttpWebResponse"
- Reply: Erik Jensen: "Re: Retrieve Form Key-Values from HttpWebResponse"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|