Community discussions

MikroTik App
 
platini
just joined
Topic Author
Posts: 7
Joined: Wed Mar 07, 2018 10:19 pm

Request: fetch support for custom http header fields

Wed Mar 07, 2018 10:30 pm

Some services require a hash been sent as a custom field on the HTTP header to perform secure authentication.

With curl it is easily doable with the -H flag. Would like to have something similar supported on Mikrotik

/tool fetch http-method=put http-content-type="application/json" http-data=("{\"name\":\"".$name."\",\"data\":\"".$data."\"}") url=("www.xyz.com/api/record")

to

/tool fetch http-method=put http-content-type="application/json" http-header="Authorization: xxxxxx" http-data=("{\"name\":\"".$name."\",\"data\":\"".$data."\"}") url=("www.xyz.com/api/record")

Thanks

Pat
 
Vulcanero
just joined
Posts: 2
Joined: Wed Mar 14, 2018 6:34 pm

Re: Request: fetch support for custom http header fields

Wed Mar 14, 2018 6:36 pm

Good day
me too
I need it so much !
 
User avatar
tronin
just joined
Posts: 2
Joined: Sat Apr 14, 2018 11:28 pm

Re: Request: fetch support for custom http header fields

Sat Apr 14, 2018 11:39 pm

Hello, I agree with this petition.
Screenshot_1.png
Screenshot_2.png
You do not have the required permissions to view the files attached to this post.
 
User avatar
tronin
just joined
Posts: 2
Joined: Sat Apr 14, 2018 11:28 pm

Re: Request: fetch support for custom http header fields

Tue Apr 17, 2018 10:08 pm

Hi, I think there are some features that would be very useful in fetch support, if it is possible to include them...


- Http-Header
- Keyed-hash message authentication code in these request. (HMAC-MD5 or :) HMAC-SHA1)
- Base64. Like SCEP do.

IMHO, much appreciated!
 
platini
just joined
Topic Author
Posts: 7
Joined: Wed Mar 07, 2018 10:19 pm

Re: Request: fetch support for custom http header fields

Sat Sep 01, 2018 7:58 am

Bumping this request
 
Vargas
just joined
Posts: 6
Joined: Fri Jun 01, 2018 5:44 pm

Re: Request: fetch support for custom http header fields

Mon Sep 17, 2018 12:45 pm

We are also waiting for the exteremely useful ability to provide with custom HTTP headers on FETCH requests.

Best regards.
AV
 
User avatar
Hrobocop
just joined
Posts: 23
Joined: Sun Dec 04, 2011 12:07 pm
Location: Prague

Re: Request: fetch support for custom http header fields

Sat Sep 22, 2018 10:30 am

Please, need this for better Slack messaging - would like to send via POST/JSON, URL encoding using RouterOS scripting is hell...
https://github.com/massimo-filippi/mikr ... -slack.rsc
 
nicoh
just joined
Posts: 10
Joined: Tue May 22, 2018 8:51 pm

Re: Request: fetch support for custom http header fields

Tue Nov 13, 2018 8:55 am

This feature would be handy in terms of backup to owncloud/nextcloud.

See: Upload to “File Drop” using curl from command line
 
joerobinson
just joined
Posts: 2
Joined: Fri Jul 27, 2018 7:15 pm

Re: Request: fetch support for custom http header fields

Tue Jan 22, 2019 4:25 pm

One more for this. Please, please, please allow custom header fields.

I would prefer to do this directly from the router than from a script on one of the servers behind it.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Request: fetch support for custom http header fields

Tue Jan 22, 2019 5:05 pm

Already possible

/tool fetch http-header-field=
 
platini
just joined
Topic Author
Posts: 7
Joined: Wed Mar 07, 2018 10:19 pm

Re: Request: fetch support for custom http header fields

Tue Apr 02, 2019 10:37 pm

Thanks a lot for implementing this feature!!!!

Who is online

Users browsing this forum: Bing [Bot], netmas and 74 guests