# \[HTTP Node\] / \[Function Node\] Clicking a button

**URL:** <https://community.n8n.io/t/http-node-function-node-clicking-a-button/7863>\
**Category:** Questions\
**Tags:** node\
**Created:** [September 15, 2021, 8:29am UTC](https://community.n8n.io/t/http-node-function-node-clicking-a-button/7863 "2021-09-15T08:29:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![RedPacketSec](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/redpacketsec/32/17523_2.png) [@RedPacketSec](https://community.n8n.io/u/RedPacketSec)\
**Post date:** [September 15, 2021, 8:29am UTC](https://community.n8n.io/t/http-node-function-node-clicking-a-button/7863/1 "2021-09-15T08:29:48Z")

</div>

As some of you may know i’m keeping tabs on ransomware victim in the dark web and scraping the blogs of the ransomware groups. They keep changing the anti-scraping protection and I’m looking to bypass it to keep scraping the site.

Is there I way I can bypass this.

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/4/4c1cc5f42f6d565985a3553210c0e4a5bd659e67.png)

At this point in the flow, I need it to then click the button that shows on the webpage and continue on the flow,

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/c/c26f80af7b7179eaacb2db5041a82dba27a5a1df.png)

any ideas?

I’m thinking maybe to just add the cookie that its trying to set and see if that will do it

---

<div class="post-metadata">

**Author:** ![RedPacketSec](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/redpacketsec/32/17523_2.png) [@RedPacketSec](https://community.n8n.io/u/RedPacketSec)\
**Post date:** [September 15, 2021, 8:50am UTC](https://community.n8n.io/t/http-node-function-node-clicking-a-button/7863/2 "2021-09-15T08:50:53Z")

</div>

yeah needed to enable Full response

and add the Cookie in, works now.

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/9/9f19d9af6bbd7300a8a9bfa05be2396b17dd646b.png)

---

<div class="post-metadata">

**Author:** ![RedPacketSec](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/redpacketsec/32/17523_2.png) [@RedPacketSec](https://community.n8n.io/u/RedPacketSec)\
**Post date:** [September 15, 2021, 9:05am UTC](https://community.n8n.io/t/http-node-function-node-clicking-a-button/7863/3 "2021-09-15T09:05:49Z")

</div>

spoke too soon

passing the cookie to HTTP nodes further down the line only works for the first result when iterating

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/c/c8768ffd7d38a076ff15c1aef41bbecb0abfdd72.png)

---

<div class="post-metadata">

**Author:** ![harshil1712](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/harshil1712/32/1374_2.png) [@harshil1712](https://community.n8n.io/u/harshil1712)\
**Post date:** [September 15, 2021, 11:37am UTC](https://community.n8n.io/t/http-node-function-node-clicking-a-button/7863/4 "2021-09-15T11:37:01Z")

</div>

How are you referencing the value for the Cookie?

---

<div class="post-metadata">

**Author:** ![RedPacketSec](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/redpacketsec/32/17523_2.png) [@RedPacketSec](https://community.n8n.io/u/RedPacketSec)\
**Post date:** [September 15, 2021, 12:06pm UTC](https://community.n8n.io/t/http-node-function-node-clicking-a-button/7863/5 "2021-09-15T12:06:27Z")

</div>

![image](https://europe1.discourse-cdn.com/n8n/original/2X/3/35c3847799f5a713c3e39746edb733795543eb97.png)

---

<div class="post-metadata">

**Author:** ![harshil1712](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/harshil1712/32/1374_2.png) [@harshil1712](https://community.n8n.io/u/harshil1712)\
**Post date:** [September 15, 2021, 12:38pm UTC](https://community.n8n.io/t/http-node-function-node-clicking-a-button/7863/6 "2021-09-15T12:38:49Z")

</div>

Since you’re passing the values without expression, all the requests will use this value. Is it possible, that the URL expects different cookie values?

---

<div class="post-metadata">

**Author:** ![RedPacketSec](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/redpacketsec/32/17523_2.png) [@RedPacketSec](https://community.n8n.io/u/RedPacketSec)\
**Post date:** [September 15, 2021, 12:44pm UTC](https://community.n8n.io/t/http-node-function-node-clicking-a-button/7863/7 "2021-09-15T12:44:25Z")

</div>

Doesnt seem like it, on first glance. Why would the first HTTP node work and then the first iteration on the next http node with the cookie value, but not any iteration after that?

I also tried passing the entire header from the first request too, didnt make any difference.

---

<div class="post-metadata">

**Author:** ![RedPacketSec](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/redpacketsec/32/17523_2.png) [@RedPacketSec](https://community.n8n.io/u/RedPacketSec)\
**Post date:** [September 15, 2021, 1:08pm UTC](https://community.n8n.io/t/http-node-function-node-clicking-a-button/7863/8 "2021-09-15T13:08:01Z")

</div>

i think the site isnt the most stable it is working ok again at the moment. strange

---

<div class="post-metadata">

**Author:** ![RedPacketSec](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/redpacketsec/32/17523_2.png) [@RedPacketSec](https://community.n8n.io/u/RedPacketSec)\
**Post date:** [November 3, 2021, 7:06am UTC](https://community.n8n.io/t/http-node-function-node-clicking-a-button/7863/9 "2021-11-03T07:06:03Z")

</div>

I t hink i really need something like puppeteer or selenium, that I can use n8n to hook into, but there are no nodes for these so need to work out best way to get this to work.
