Menu

#109 Configurable MIME type for Content-Type

open
nobody
MIME (1) REST (1)
5
2020-11-20
2020-11-20
No

Hello

Currently, when generating soapClient.c for REST services, when the consumer sends some payload, the generated send function (hence also call) set the Content-Type to application/x-www-form-urlencoded.

However, when I invoke my REST service, I want to send either application/xml or application/json.

To reduce my code and make it easier to develop and maintain, it would be nice if you could consider the currently specified MIME type as a default, and provide some function to set the content type, before I can call soap_send...PUT or POST high-level, generated function.

(See example of the current behavior in line 334 of the attached file).

Thanks
Christian

1 Attachments

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.