Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Apr : Indy 9 TIdHTTP.Request.CustomHeaders

www.cryer.info
Managed Newsgroup Archive

Indy 9 TIdHTTP.Request.CustomHeaders

Subject:Indy 9 TIdHTTP.Request.CustomHeaders
Posted by:"Johnnie Norsworthy" (jln2..@verizon.net)
Date:Mon, 4 Apr 2005 08:39:37

I just did a complete reinstall of Delphi 6 and downloaded and installed
Indy 9.0.18. I thought this was the verison I had previously been using.

But now, in my code I get an error on my TIdHTTP component when trying to
assign to the Request.CustomHeaders:

HTTP.Request.CustomHeaders.Clear; <- error "Undeclared Identifier
CustomHeaders"

If I look at the Object inspector, there is a Request.CustomHeaders property
and I can assign headers there, but I need to do it at runtime.

I tried renaming the component in case of a duplicate name of HTTP
somewhere, but that did not work either. The code completion of Delphi 6
does not even list the CustomHeaders property.

I am sure this has got to be a simple Delphi environment issue, but I am at
a loss at to what right now.

Thanks for any assistance.

-Johnnie

Replies:

www.cryer.info
Managed Newsgroup Archive