# Feature request: /tool fetch HTTP-POST can send a file

**URL:** <https://forum.mikrotik.com/t/feature-request-tool-fetch-http-post-can-send-a-file/154710>\
**Category:** Scripting\
**Created:** [January 5, 2022, 7:40am UTC](https://forum.mikrotik.com/t/feature-request-tool-fetch-http-post-can-send-a-file/154710 "2022-01-05T07:40:08Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![msatter](https://forum.mikrotik.com/letter_avatar/msatter/32/6_449c533f586939b6e5f246632a46421f.png) [@msatter](https://forum.mikrotik.com/u/msatter)\
**Post date:** [January 24, 2022, 8:25pm UTC](https://forum.mikrotik.com/t/feature-request-tool-fetch-http-post-can-send-a-file/154710/3 "2022-01-24T20:25:11Z")

</div>

Better without that annoying 4kB _63KB_ limitation!

Also:

```plaintext
:set $data "up to 63KB..."
/tool fetch http-method=post http-content-type="application/json" http-data=$data url="https://testserver.lv/index.php"

```

[https://help.mikrotik.com/docs/display/ROS/Fetch](https://help.mikrotik.com/docs/display/ROS/Fetch)

Then, for downloading “chunking” can be used when the server supports it. I don’t know if “chunking” is also supported for posting.

[http://forum.mikrotik.com/t/how-to-download-only-one-piece-of-file-at-a-time-with-tool-fetch-and-put-it-inside-a-variable/151020/1](http://forum.mikrotik.com/t/how-to-download-only-one-piece-of-file-at-a-time-with-tool-fetch-and-put-it-inside-a-variable/151020/1)

---

_[View the full topic](https://forum.mikrotik.com/t/feature-request-tool-fetch-http-post-can-send-a-file/154710)._
