Fetch not sending header in HTTPS mode

I was trying to make some script for interacting with cloudflare service.
But I found interesting bug. Here is ticket at cloudflare support.
Looks like Fetch command in https mode requests page not by URL, but by ip.
It not open “https://cloudflare.com/api…”, but requesting “190.93.240.253/api…” instead
really strange behavior
CF1.png
CF2.png

Have you tried including a host parameter?

/tool fetch mode=https address=www.cloudflare.com host=www.cloudflare.com src-path=...

thanks a lot! It helped, now everething works :slight_smile: