• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get host MAC via REST API inside container
#4
Hi Benjamin,

the point with the MAC ID is common Raspberry Pi sense and not Hilscher specific. You can use google search to find several links where this is described.


As next I want to give you a hint how you can test any RESTful API yourself using a browser like google chrome for example. It works with Firefox as well.

Any modern browser has the option to enable debugging HTML web pages. So as with google chrome. So visit the netPI main page and choose from the chrome browser's three dots in the upper right corner the option "tools/development tools ... ". A new window will be opened next to the netPI web page.

In this window you have several tabs you can choose to look into, the most important one for you is the "network" tab. In this tab all the web browser's API calls to the netPI web pages are recorded message by message. So now login to netPI as usual ... you will see the requested login message being recorded under "headers" and you see also the response from netPI under "response" and the cookie. You should see basically the very same messages as those you call via the curl command. Then go on further to other netPI web sites you want to get recorded and analyse them ... by this method you will get out where your problem is with ease.

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

  Reply


Messages In This Thread
Get host MAC via REST API inside container - by bschandra - October-14th-2020, 01:30 PM
RE: Get host MAC via REST API inside container - by Armin@netPI - October-15th-2020, 04:04 PM
RE: Get host MAC via REST API inside container - by bschandra - November-16th-2020, 09:26 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  REST API server data communication MGharat 2 2,529 July-21st-2021, 07:01 AM
Last Post: MGharat
  TOSILOCK for CONTAINER COswald 3 2,283 July-13th-2021, 11:32 AM
Last Post: Armin@netPI
  Accessing netPI web UI with REST API Armin@netPI 14 8,158 June-30th-2021, 05:06 AM
Last Post: Armin@netPI
  Access to RTC from my own container application tad 1 3,605 March-19th-2021, 02:58 PM
Last Post: Armin@netPI
  [SOLVED] Starting services/commands/scripts at startup of a container Jonas.Sellmann@outlook.de 9 6,314 March-9th-2021, 08:47 AM
Last Post: WalterSchaefer
  OpenVPN container Armin@netPI 0 1,676 January-3rd-2021, 12:13 PM
Last Post: Armin@netPI
  operating Console of a container on netPI connected to Wi-Fi tethering tad 3 2,723 December-3rd-2020, 12:32 PM
Last Post: tad
  NIOT-E-NPIX-4DI4DO with netpi-netx container WalterSchaefer 3 6,800 November-25th-2020, 01:06 PM
Last Post: zen89
  NPIX-4DI4DO and NetPi-Nodered container issues alhammi 4 7,961 November-16th-2020, 01:35 PM
Last Post: alhammi
  Exporting and importing container images Armin@netPI 3 3,214 May-20th-2020, 11:24 AM
Last Post: COswald

Forum Jump:


Users browsing this thread: 1 Guest(s)