• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Accessing netPI web UI with REST API
#11
Well Tad,

you agree that a standard web browser you are using to access the netPI via netPI's web pages works well, or?

This means in turn that the standard web browser get managed to call the netPI RESTapi successfully and well, right? So if the web browser get managed through it ... then you should be able to execute the very same access from any other external code that is calling the RESTApi. This is my personal impression.

Since I don't know your HTML application and what parameters are really called during your external HTML access, I recommend the following first to make sure all the parameters needed for a successful API access are well know: use a standard web browser like Chrome, Firefox, Internet Explorer, doesn't matter which one, and enable the socalled "developer mode" or "debug mode" or however it is called in the web browser. In this special mode the web browser records all the accesses to web pages and files them to a long log file. This data you can watch and analyse afterwards. So if you call the netPI's login page and have the debug mode enabled and you login then ... the POST messages are recorded and you can watch them afterwards. This gives you the possibility to analyse well which cookies, parameters, codes are sent by the browser in the POSTs and compare them if they are all present in your HTML code of your Node-RED application.

So once again ... if a web browser gets managed to access the netPI, or your Linux "http ..." command line via the RESTApi then a HTML code must be able to do the same.

If of course the HTML code executer in Node-RED has a problem then I can't do much. How is your HTML code in Node-RED by the way? Can you post it?

Thx
Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
Accessing netPI web UI with REST API - by Armin@netPI - September-5th-2018, 03:45 PM
RE: Accessing netPI web GUI with HTTP REST - by Armin@netPI - September-11th-2018, 06:51 AM
RE: Accessing netPI web GUI with HTTP REST - by tad - March-30th-2021, 02:50 AM
RE: Accessing netPI web GUI with HTTP REST - by tad - March-30th-2021, 07:18 AM
RE: Accessing netPI web UI with REST API - by Armin@netPI - March-30th-2021, 07:45 AM
RE: Accessing netPI web UI with REST API - by tad - June-10th-2021, 01:40 PM
RE: Accessing netPI web UI with REST API - by tad - June-25th-2021, 09:06 AM
RE: Accessing netPI web UI with REST API - by Armin@netPI - June-25th-2021, 02:23 PM
RE: Accessing netPI web UI with REST API - by tad - June-28th-2021, 07:41 AM
RE: Accessing netPI web UI with REST API - by tad - June-30th-2021, 03:57 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  REST API server data communication MGharat 2 2,441 July-21st-2021, 07:01 AM
Last Post: MGharat
  Get host MAC via REST API inside container bschandra 4 3,641 November-16th-2020, 09:26 AM
Last Post: bschandra
  Accessing a modbus device connected to RTE port from Node-RED tad 10 7,906 October-2nd-2020, 07:21 AM
Last Post: Armin@netPI
  Web browser reports "insecure connection" when accessing netPI for the first time Armin@netPI 2 2,749 January-31st-2020, 07:07 AM
Last Post: Armin@netPI
Information netPI Docker REST API patrick 1 3,355 July-16th-2019, 02:45 PM
Last Post: patrick
  Accessing Docker daemon through remote CLI adeeljsid 2 3,432 August-30th-2018, 12:32 PM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)