Главная страница | назад





Article #17333: Why doesn't TCGIResponse->SendRedirect() work?

 Question and Answer Database

FAQ2333C.txt   Why doesn't TCGIResponse->SendRedirect() work?
Category   :VCL
Platform    :All
Product    :C++Builder  3.x

Question:
Why and how can I fix make it work?

Answer:
Looking at the VCL source, It seems that someone left off the two
carriage returns from the end of the HTTP header.

This problem can be corrected by calling SendRedirect() with the carriage
returns after the url in the AnsiString:

Response->SendRedirect("http://www.website.com/index.html\n\n");



7/2/98 10:32:32 AM
 

Last Modified: 01-SEP-99