HttpWebRequest and frames

  • Thread starter Thread starter Krzysztof Kazmierczak
  • Start date Start date
K

Krzysztof Kazmierczak

Hi All!

I'm sending a web request (using HttpWebRequest class) to
the page which contains frameset. I have such a response:
Your browser cannot display frames (i'm using IE 6.0).
What can i do to get a proper response from that site?
Maybe i have to set userAgent property of HttpWebRequest
class?

Thanks for any help!
Kind regards!
Krzysztof Kazmierczak
 
Krzysztof Kazmierczak said:
Hi All!

I'm sending a web request (using HttpWebRequest class) to
the page which contains frameset. I have such a response:
Your browser cannot display frames (i'm using IE 6.0).
What can i do to get a proper response from that site?
Maybe i have to set userAgent property of HttpWebRequest
class?

Yes, that's what you need to do.
 
Hi!

Thanks for your information. I've tried put some strings
to userAgent property (for example: Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
1.1.4322)) but without any results. Maybe you know what
string will be valid for that?

Thanks!
Kind Regards
Krzysztof Kazmierczak
 
Krzysztof Kazmierczak said:
Hi!

Thanks for your information. I've tried put some strings
to userAgent property (for example: Mozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
1.1.4322)) but without any results. Maybe you know what
string will be valid for that?

That's weird. Maybe the user agent detection on the server-side is a
little dodgy. Any idea how it works, e.g. JavaScript?
 
Maybe your're wright and something wrong is with that
site agent detection. But when i explore it with IE
everything is ok so that why i am asking for any ideas to
solve that problem.


Krzysztof
 
Back
Top