Re: HttpWebRequest only returning NOFRAMES part of page
From: Ken Dopierala Jr. (kdopierala2_at_wi.rr.com)
Date: 10/04/04
- Next message: Karl Seguin: "Re: how to do postback in owner page?"
- Previous message: Karl Seguin: "Re: Retrieving Record Key while creating the record."
- In reply to: Toralf: "HttpWebRequest only returning NOFRAMES part of page"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 4 Oct 2004 15:35:23 -0500
Hi,
This sounded interesting so I gave it a try. To get it working I had to set
my UserAgent to this:
objRequest.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
.NET CLR 1.0.3705; .NET CLR 1.1.4322)"
I tested on this page:
http://msdn.microsoft.com/library/default.asp
Worked good, returned the Frameset to me. I think then to get what you want
you'd have to parse it for the value of the src of each frame, then make a
request on those pages. Good luck! Ken.
-- Ken Dopierala Jr. For great ASP.Net web hosting try: http://www.webhost4life.com/default.asp?refid=Spinlight If you sign up under me and need help, email me. "Toralf" <toralf.hallen@area26-dot-com.no-spam.invalid> wrote in message news:4161abc7_3@Usenet.com... > Greetings > > I have trouble catching the actual HTML Source code of a > HttpWebRequest when the result of a successful login is a Frameset (I > cant seem to get hold of the Frameset page Source code). > > The request is an automated basic login post (HttpWebRequest.Method = > "POST" with username and password) which successfully catches Cookies > etc. But the sources code I get is the NOFRAMES part of the frameset > page: > > "The page requires a frames-capable browser. Almost every modern > browser includes frame support, so you may wish to try upgrading to a > browser such as Netscape or Internet Explorer." > > The underlaying pages are accessible withour the frameset but that > isnt the point. I need to get hold of the actual Frameset code all > well. I have gone through all HttpWebRequest and HttpWebResponse > properties but so far I couldnt find a solution to this little > kickup. > > Anyone managed to do this? >
- Next message: Karl Seguin: "Re: how to do postback in owner page?"
- Previous message: Karl Seguin: "Re: Retrieving Record Key while creating the record."
- In reply to: Toralf: "HttpWebRequest only returning NOFRAMES part of page"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|