QUERY with Terminal

I just want to use terminal to do curl. But don't know number of port .when type query in console of kibana there is option 'copy curl' .but when I press copy, and want to paste in terminal , nothing pasted.
How can I do curl?