Community discussions

MikroTik App
 
User avatar
m4rk0
Member Candidate
Member Candidate
Topic Author
Posts: 196
Joined: Sat Feb 16, 2008 8:30 pm
Location: BA
Contact:

[BUG] Fetch - Default Content-Type hardcoded (v6.49)

Tue May 24, 2022 12:32 pm

Hello,

I'm trying to rewrite cURL request to Fetch request, and I'm stuck at http-header-field where I'm trying to define Content-Type: application/json and Fetch appending Content-Type: application/x-www-form-urlencoded.

If I don't define http-header-field it defaults to Content-Type: application/x-www-form-urlencoded, but if I define http-header-field="Content-Type: application/json" it will send both Content Types like: Content-Type: application/json,application/x-www-form-urlencoded.

Content-Length: 41
Content-Type: application/json,application/x-www-form-urlencoded
User-Agent: Mikrotik/6.x Fetch

Also MikroTik documentation mentioning option http-content-type at https://help.mikrotik.com/docs/display/ROS/Fetch but it's not available on ROS v6.49

This is all tested at https://dev.oscato.com/ and on MikroTik ROS 6.49

Is it possible to fix this?

Who is online

Users browsing this forum: No registered users and 13 guests