Avatar of BillPierce
BillPierce

asked on 

How can Indy HTTP Server and PageProducer serve images with the HTML

I'm using C++ Builder 6 along with the supplied PageProducer and Indy HTTP Server.  I've specified an HTML document within PageProducer.  The HTML document has several .jpg images and a .js file.  When I surf to the URL(on a local network)  I get the HTML document in IE and Firefox and it all displays fine except the images and no javascript will run.

How can I get the server to send the images and the .js file?  I have monitored the request and the browsers are requesting them.

So far I've simply assigned the ResponseInfo->ContentText = PageProducerMine->Content();
Although I am using BCB 6 I do understand examples in Delphi too.
Thanks!
Editors IDEs

Avatar of undefined
Last Comment
George Tokas

8/22/2022 - Mon