#1 2024-01-27 08:14:26

bigheart
Member
Registered: 2014-08-01
Posts: 45

Possible value for TTHttpClientSocketRequestParams.DataType

Hi,

What values can be entered into the TTHttpClientSocketRequestParams.DataType field?

Please give some example.

Offline

#2 2024-01-27 17:41:56

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,316
Website

Re: Possible value for TTHttpClientSocketRequestParams.DataType

This TTHttpClientSocketRequestParams is an internal wrapper record.
Why do you want to modify it?

At TTHttpClientSocket level, the DataType parameter is the mime content-type of the Data parameter.
If not is set, it assumes 'application/json'.

Offline

#3 2024-01-28 00:36:22

bigheart
Member
Registered: 2014-08-01
Posts: 45

Re: Possible value for TTHttpClientSocketRequestParams.DataType

I just want to know how to use THttpClientSocket.Post() with THttpMultiPartStream parameter.

So, DataType is as Mime Type.

Thanks ab.

Offline

#4 2024-01-28 11:02:23

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,316
Website

Re: Possible value for TTHttpClientSocketRequestParams.DataType

I have made it more explicit:
https://github.com/synopse/mORMot2/commit/95f8a54d

Sorry for the confusion. wink

Offline

Board footer

Powered by FluxBB