# how curl work in KNIME

**URL:** <https://forum.knime.com/t/how-curl-work-in-knime/37150>\
**Category:** KNIME Analytics Platform\
**Created:** [November 5, 2021, 9:52am UTC](https://forum.knime.com/t/how-curl-work-in-knime/37150 "2021-11-05T09:52:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anguslou](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/df788c/32.png) [@anguslou](https://forum.knime.com/u/anguslou)\
**Post date:** [November 5, 2021, 9:52am UTC](https://forum.knime.com/t/how-curl-work-in-knime/37150/1 "2021-11-05T09:52:20Z")

</div>

Hi,

I have a curl that works when I run by Mac/ Terminal but not sure how to put this in KNIME node:

curl --location --request GET ‘[http://websiteabcdefg-env-3.eba-h99gmigd.us-east-1.webrequest.com/api/v1/segments/top-asins?parent\_segment\_id=32&source\_id=0&start\_price=100&end\_price=200&num\_asins=7](http://websiteabcdefg-env-3.eba-h99gmigd.us-east-1.webrequest.com/api/v1/segments/top-asins?parent_segment_id=32&source_id=0&start_price=100&end_price=200&num_asins=7)’   
–header ‘Authorization: token abcdefghijklmnopqretuvwxyz’

Can somebody please help

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [November 5, 2021, 4:48pm UTC](https://forum.knime.com/t/how-curl-work-in-knime/37150/2 "2021-11-05T16:48:46Z")

</div>

Hello @anguslou,

is [GET Request](https://kni.me/n/jrLgNd_aIVOrfPsF) node an option for you?

> [@cURL in POST or GET Node](https://forum.knime.com/t/curl-in-post-or-get-node/20737):
>
> Hey! I am trying to connect to the [weather.gov](http://weather.gov) ([https://www.weather.gov/documentation/services-web-api#/default/get\_alerts](https://www.weather.gov/documentation/services-web-api#/default/get_alerts)) API and the configuration instructions show it in cURL format. I am trying to understand how the code for the the cURL translates into successful configuration for the POST or GET nodes. For example this is what it shows: \> Curl: curl -X GET "https://api.weather.gov/zones?id=&area=CO&type=land&include\_geometry=true" -H "accept: application/geo+json" \> Request URL: https…

Br,  
Ivan

---

<div class="post-metadata">

**Author:** ![anguslou](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/df788c/32.png) [@anguslou](https://forum.knime.com/u/anguslou)\
**Post date:** [November 8, 2021, 3:50am UTC](https://forum.knime.com/t/how-curl-work-in-knime/37150/3 "2021-11-08T03:50:38Z")

</div>

Hi Ivan, thanks for your reply.

I tried the flow but authorisation is not handled in the flow so I get an error

 ![Screenshot 2021-11-08 at 11.48.51 AM](https://forum-cdn.knime.com/uploads/default/original/3X/e/e/eebc46d601f2d0e8281c01673719184a824ec7f7.png)

---

<div class="post-metadata">

**Author:** ![Daniel\_Weikert](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/d/e47c2d/32.png) [@Daniel\_Weikert](https://forum.knime.com/u/Daniel_Weikert)\
**Post date:** [November 9, 2021, 5:38pm UTC](https://forum.knime.com/t/how-curl-work-in-knime/37150/4 "2021-11-09T17:38:47Z")

</div>

Hi,  
normally the API should have a documentation on how to provide the token. Maybe you need to use Bearer in front of your token?

---

<div class="post-metadata">

**Author:** ![bruno29a](https://forum-cdn.knime.com/user_avatar/forum.knime.com/bruno29a/32/28802_2.png) [@bruno29a](https://forum.knime.com/u/bruno29a)\
**Post date:** [November 9, 2021, 9:22pm UTC](https://forum.knime.com/t/how-curl-work-in-knime/37150/5 "2021-11-09T21:22:42Z")

</div>

Hi @anguslou , it looks like you asked the same question in another thread where I answered you there:

> [@API Call with "Authorization: Token"](https://forum.knime.com/t/api-call-with-authorization-token/8001/7):
>
> Hi, I have a similar problem and I am running on KNIME 4.4. My curl is as following but how to put it into GET request node and have token authorization properly setup? curl --location --request GET ‘[http://websiteabcdefg-env-3.eba-h99gmigd.us-east-1.webrequest.com/api/v1/segments/top-asins?parent\_segment\_id=32&source\_id=0&start\_price=100&end\_price=200&num\_asins=7](http://websiteabcdefg-env-3.eba-h99gmigd.us-east-1.webrequest.com/api/v1/segments/top-asins?parent_segment_id=32&source_id=0&start_price=100&end_price=200&num_asins=7)’ –header ‘Authorization: token abcdefghijklmnopqretuvwxyz’ Can somebody please help

That’s the problem with asking the same question in different threads, they take different directions and it becomes a mess.

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [May 11, 2022, 9:23am UTC](https://forum.knime.com/t/how-curl-work-in-knime/37150/6 "2022-05-11T09:23:26Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
