RTC Forums
November 24, 2024, 03:45:29 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Setting ContentType on a response  (Read 4533 times)
jorgen
RTC Expired
*
Posts: 20


« on: September 25, 2013, 02:31:15 PM »

How can I set ContentType  to 'application/json' on the response?

 with TRtcDataServer(Sender) do
  begin

    if Request.Complete then
    begin

  Request.ContentType  :='application/json';
  Write("ff");
end;
end;


but this doesn't work
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: September 25, 2013, 02:49:14 PM »

TRtcDataServer(Sender).Response.ContentType :=
  or
TRtcDataServer(Sender).Reponse['Content-Type'] :=

Best Regards,
Danijel Tkalcec
Logged
jorgen
RTC Expired
*
Posts: 20


« Reply #2 on: September 25, 2013, 02:56:10 PM »

Thanks

It worked


Jørgen
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.023 seconds with 17 queries.