# Query WEB pages from PoE switch

**URL:** <https://discourse.nodered.org/t/query-web-pages-from-poe-switch/40014>\
**Category:** General\
**Created:** [29 January 2021 20:29 UTC](https://discourse.nodered.org/t/query-web-pages-from-poe-switch/40014 "2021-01-29T20:29:36Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![myWa](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@myWa](https://discourse.nodered.org/u/myWa)\
**Post date:** [29 January 2021 20:29 UTC](https://discourse.nodered.org/t/query-web-pages-from-poe-switch/40014/1 "2021-01-29T20:29:36Z")

</div>

Hello forum,

good evening. I'm new here and have a question about "querying" web pages from IOT devices.

I use a PoE switch from Microsens (MS450), which shows me the performance of the respective PoE ports. I would like to query this performance information via http request and html node.

The debugging gives me the following after the http request node:

Your Browser doesn't support Frames!  
This page cannot be visualized.  
Ihr Browser unterstützt leider keine Frames!  
Diese Seite kann daher nicht angezeigt werden.  
"

Can someone give me a hint what the problem is and what I have to change so that I can make progress?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [29 January 2021 20:58 UTC](https://discourse.nodered.org/t/query-web-pages-from-poe-switch/40014/2 "2021-01-29T20:58:21Z")

</div>

You need to open the page in your browser and see what it is actually doing. It looks like it loads a master page and then some iframes into that (v. old-school). You probably want to pick out the iframe URL instead of the master.

---

<div class="post-metadata">

**Author:** ![myWa](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@myWa](https://discourse.nodered.org/u/myWa)\
**Post date:** [29 January 2021 21:41 UTC](https://discourse.nodered.org/t/query-web-pages-from-poe-switch/40014/3 "2021-01-29T21:41:13Z")

</div>

Hello TotallyInformation,  
Thank you for your reply.

Yes, that is possible. I reach the first page in the browser without logging in.

When I log into the browser and select a "sub menu" on the left - this sub page is also displayed under the same URL. So no matter which page I select, the same address is always displayed in the browser address bar.

 ![ms450-2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/1/519887e26c653740f5777717559ee53f37398fbc.jpeg)

Do I perhaps have to insert other header information in NR?  
But I have no idea about it.

Regards, myWa

---

<div class="post-metadata">

**Author:** ![vikozo](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Post date:** [29 January 2021 21:47 UTC](https://discourse.nodered.org/t/query-web-pages-from-poe-switch/40014/4 "2021-01-29T21:47:05Z")

</div>

if you have snmp maybe it would be more easy?

---

<div class="post-metadata">

**Author:** ![myWa](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@myWa](https://discourse.nodered.org/u/myWa)\
**Post date:** [30 January 2021 09:34 UTC](https://discourse.nodered.org/t/query-web-pages-from-poe-switch/40014/5 "2021-01-30T09:34:25Z")

</div>

Thanks for the tip. Unfortunately, I have absolutely no idea about SNMP.

I don't know whether I can get the performance values from this PoE switch via SNMP and how I have to activate it.

But I'll take a look at this time.

Thanks again.  
myWa

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [30 January 2021 10:54 UTC](https://discourse.nodered.org/t/query-web-pages-from-poe-switch/40014/6 "2021-01-30T10:54:51Z")

</div>

try looking under the Netwerkanalyse tab of the browser tools - It should show all the fragments it is loading into the frames. get to the page before you click the menu item - clear the log - then click the button to get the page you want and see what extra it is loading... That will have a url associated with each fragment... - one of them is probably the only bit you need to request - and hopefully you can just request it directly - by trying to cut paste that into another empty browser tab. Once you find the correct fragment - then you can put that back into the Node-RED request.. and then start slicing up the data to get to the bit you need.

---

<div class="post-metadata">

**Author:** ![myWa](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@myWa](https://discourse.nodered.org/u/myWa)\
**Post date:** [30 January 2021 14:35 UTC](https://discourse.nodered.org/t/query-web-pages-from-poe-switch/40014/7 "2021-01-30T14:35:17Z")

</div>

Hello dceejay,  
First of all, thank you for your reference. With your help I have come a little further. Yes, I think scripts are started.

The network analysis shows the following:

 ![MS450-4](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/1/b1d65e5f9594cffd4f0c0fe7f83aa348f050e99b.jpeg)

As I am not an expert, it is possible that this is not a good thing. Node-Red shows me the following result The result has been shortened. The fields for PoE power are not shown, but are included:

 ![MS450-5](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/3/c3f3da65c8bf4e5ae2072388be38573462c8f141.jpeg)

Is it possible to use this method to get the values?

Thank you and best regards,  
myWa

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [30 January 2021 14:49 UTC](https://discourse.nodered.org/t/query-web-pages-from-poe-switch/40014/8 "2021-01-30T14:49:12Z")

</div>

Well - in one of those scripts there will be a call to the backend to get the actual data which it will then build the table with... it may have `http://` in it - or maybe `ws://` or may say `get` or `ajax` or `open` or `fetch` or somesuch... keep digging !

---

<div class="post-metadata">

**Author:** ![myWa](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@myWa](https://discourse.nodered.org/u/myWa)\
**Post date:** [30 January 2021 20:46 UTC](https://discourse.nodered.org/t/query-web-pages-from-poe-switch/40014/9 "2021-01-30T20:46:12Z")

</div>

Hello dceejay,  
you're right. I kept digging ... and found the following json:

 ![MS450-61](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/e/bed9fc1ca85968a90f62acab010958b6c9ff6810.jpeg)

In there is also the PoE power as a value. That is very nice.  
"value"% 3A "8.4W"

The command begins with:  
"data: application / json; charset = UTF-8,% 7B" name "% 3..."

My only problem now is:  
How do I get this into node-red?  
So how do I link the IP address / URL with this long line: "" data: application / json; charset = UTF-8,% 7B "name"% 3 ... "

 ![MS450-62](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/f/4f6ac6d209d8c8826aef7a46de8e3aac61a742a1.jpeg)

The strange thing is that I get the value. Although no URL (IP address) is entered.  
Where is the mistake?

Does somebody has any idea?

Greetings and have a nice Saturday evening,  
myWa

---

<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:** [31 March 2021 20:46 UTC](https://discourse.nodered.org/t/query-web-pages-from-poe-switch/40014/10 "2021-03-31T20:46:26Z")

</div>

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