# How can I login to a website with username & pass from node RED

**URL:** https://discourse.nodered.org/t/how-can-i-login-to-a-website-with-username-pass-from-node-red/39339
**Category:** General
**Created:** [18 January 2021 15:13 UTC](https://discourse.nodered.org/t/how-can-i-login-to-a-website-with-username-pass-from-node-red/39339 "2021-01-18T15:13:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Chetan](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@Chetan](https://discourse.nodered.org/u/Chetan)
#### Post date: [18 January 2021 15:13 UTC](https://discourse.nodered.org/t/how-can-i-login-to-a-website-with-username-pass-from-node-red/39339/1 "2021-01-18T15:13:44Z")

</div>

I want to do the web scrapping of a web site which needs username & password for login.  
i tried with http and https request node but not working. does anyone have idea how we can pass this authentication ?

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [18 January 2021 15:26 UTC](https://discourse.nodered.org/t/how-can-i-login-to-a-website-with-username-pass-from-node-red/39339/2 "2021-01-18T15:26:11Z")

</div>

Hi @Chetan

it will depend entirely on how the website's authentication has been implemented. The HTTP Request node can be used if the site uses Basic Authentication. But very few sites do that. It is more likely the website has a login flow that involves exchanging username/password for a token, and that token must be provided with each request.

There are too many possible ways for it to work to give you a single answer. If you can share details of what site you want to scrape, we may be able to give you some pointers.

---

<div class="post-metadata">

### Author: ![Chetan](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@Chetan](https://discourse.nodered.org/u/Chetan)
#### Post date: [18 January 2021 16:22 UTC](https://discourse.nodered.org/t/how-can-i-login-to-a-website-with-username-pass-from-node-red/39339/3 "2021-01-18T16:22:16Z")

</div>

Hi @knolleary, thank for the response i am doing it for my heat pump application, i want to use parameters from here [LOGIN - Remocon NET](https://www.remocon-net.remotethermo.com/Account/Login), and yes it send back the token.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [19 March 2021 16:22 UTC](https://discourse.nodered.org/t/how-can-i-login-to-a-website-with-username-pass-from-node-red/39339/4 "2021-03-19T16:22:20Z")

</div>

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