mos Posted June 3, 2021 Share Posted June 3, 2021 The UniServerModule has two event handles (OnHTTPCommand and OnHTTPDocument) which I had a look at to try and see what the response header information is coming back when a UniURLFrame.URL is set. However when I try and use AResponseInfo.RawHeaders.Count in both events the Count is always zero. Quote Link to comment Share on other sites More sharing options...
Mehmet Emin Posted June 3, 2021 Share Posted June 3, 2021 Inside UniGUIServerModuleHTTPCommand you check ARequestInfo.RawHeaders to see what headers are set from the client. Quote Link to comment Share on other sites More sharing options...
mos Posted June 3, 2021 Author Share Posted June 3, 2021 Hi Mehmet, I am actually after the Response Headers from the website that the UniURLFrame is displaying rather than the headers from the client side. Quote Link to comment Share on other sites More sharing options...
Mehmet Emin Posted June 4, 2021 Share Posted June 4, 2021 If I understand correctly you are trying to access the headers generated by the website that the UniURLFrame.URL loading. If this is the case I think it is not possible either with uniGUI or javascript. Quote Link to comment Share on other sites More sharing options...
mos Posted June 7, 2021 Author Share Posted June 7, 2021 Mehmet yes I want to access the response headers and then modify them. I was thinking since UniGUI uses a internal Indy HTTP Server I would be able to do it via one of the Server events. Sherzod or Farshad can you provide input on this? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.