RTC Forums
November 24, 2024, 03:10:59 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Login
Register
RTC Forums
>
Subscription
>
Support
>
Setting ContentType on a response
Pages: [
1
]
« previous
next »
Print
Author
Topic: Setting ContentType on a response (Read 4532 times)
jorgen
RTC Expired
Posts: 20
Setting ContentType on a response
«
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
Re: Setting ContentType on a response
«
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
Re: Setting ContentType on a response
«
Reply #2 on:
September 25, 2013, 02:56:10 PM »
Thanks
It worked
Jørgen
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Dashboard
-----------------------------
=> General
=> 3rd-Party
=> Quick Start
-----------------------------
Subscription
-----------------------------
=> Support
Loading...