# Failed to import curl command

**URL:** <https://community.postman.com/t/failed-to-import-curl-command/5371>\
**Category:** Help Hub\
**Created:** [May 9, 2019, 7:52pm UTC](https://community.postman.com/t/failed-to-import-curl-command/5371 "2019-05-09T19:52:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbdesai199](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@sbdesai199](https://community.postman.com/u/sbdesai199)\
**Post date:** [May 9, 2019, 7:52pm UTC](https://community.postman.com/t/failed-to-import-curl-command/5371/1 "2019-05-09T19:52:30Z")

</div>

I get an Invalid format for curl when I try to import the following curl command.  
This works fine from the command line.

curl -i -X POST -u demo:demo --data-binary “select \* from channels” -H “Content-Type: application/sql” -k [http://localhost:7070/foo/sql](http://localhost:7070/foo/sql)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [May 10, 2019, 6:41pm UTC](https://community.postman.com/t/failed-to-import-curl-command/5371/2 "2019-05-10T18:41:30Z")

</div>

Hey @sbdesai199,

Welcome to the community 👋

It doesn’t seem to like the extra empty arguments that are within the command, I removed the `-i` and `-k` flags and this was then imported successfully into the application.

`curl -X POST -u demo:demo --data-binary "select * from channels" -H "Content-Type: application/sql" http://localhost:7070/foo/sql`

 ![03](https://us1.discourse-cdn.com/getpostman/original/3X/3/d/3df12f53671e3b2320aa6ec4db93a5917e376764.png)
