Re: HttpWebRequest only returning NOFRAMES part of page

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Ken Dopierala Jr. (kdopierala2_at_wi.rr.com)
Date: 10/04/04


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?
>


Relevant Pages

  • Re: HttpWebRequest only returning NOFRAMES part of page
    ... the site is probably looking at user agent to determine if the browser ... supports frames. ... > cant seem to get hold of the Frameset page Source code). ...
    (microsoft.public.dotnet.framework.aspnet)
  • HttpWebRequest only returning NOFRAMES part of page
    ... HttpWebRequest when the result of a successful login is a Frameset (I ... cant seem to get hold of the Frameset page Source code). ... I have gone through all HttpWebRequest and HttpWebResponse ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Require Frameset
    ... Have your page make sure that it's within a frameset. ... redirect to the frameset page. ... >From looking at their source code they do it with client side javascript ... How can I disallow a page from ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Aw shoot
    ... All are 'strict' HTML and CSS which ... It all looks fine at my end on any browser. ... Replace frames with server side includes so that your documents do ... When I look at http://www.jimscott.co.uk/ I see a frameset. ...
    (alt.html)
  • Re: Aw shoot
    ... It all looks fine at my end on any browser. ... Replace frames with server side includes so that your documents do ... When I look at http://www.jimscott.co.uk/ I see a frameset. ...
    (alt.html)