HttpWebRequest and frames

  • Thread starter Krzysztof Kazmierczak
  • 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
 
J

Joerg Jooss

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.
 
K

Krzysztof Kazmierczak

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
 
J

Joerg Jooss

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

Krzysztof Kazmierczak

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top