Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Sep : Re: IdHTTP.get is redirected to "javascript not supported" page.
| Subject: | Re: IdHTTP.get is redirected to "javascript not supported" page. |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Fri, 21 Sep 2007 10:15:07 |
"Fredrik Sandedal" <fredrik@not-a-valid-email.se> wrote in message
news:46f38bf0$1@newsgroups.borland.com...
> I use the IdHTTP component to read the HTML response from
> a URL that is built up with Intraweb. The problem is that I only
> get redirected code to a "java-script not supported" page.
Change the TIdHTTP's Request.UserAgent property to mimic a browser with
known Javascript capabilities.
> Is there a way to configure the indy component to support java-scripts
This issue has nothing to do with supporting Javascript itself. A web
server determines the client's capabilities based on the particular
UserAgent that is making a request, so browsers have to identify themselves
accordingly.
Gambit
none