# Local Network Access via HTTP Server

DevFeed: [Local Network Access via HTTP Server](<https://devfeed.tech/articles/local-network-access-via-http-server-13904.md>)

Original publisher: [Read original article](<https://developer.espressif.com/blog/local-network-access-via-http-server/>)

Author: John Lee

Published: 2018-10-13T00:00:00Z

Content type: tutorial

Language: en

Sources: [Blog on Developer Portal](<https://devfeed.tech/sources/blog-on-developer-portal.md>)

Topics: [HTTP](<https://devfeed.tech/topics/http.md>), [servers](<https://devfeed.tech/topics/servers.md>), [API](<https://devfeed.tech/topics/api.md>), [Networks](<https://devfeed.tech/topics/networks.md>), [Wi-Fi](<https://devfeed.tech/topics/wi-fi.md>), [Security](<https://devfeed.tech/topics/security.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [blog](<https://devfeed.tech/tags/blog.md>), [building-products](<https://devfeed.tech/tags/building-products.md>), [code](<https://devfeed.tech/tags/code.md>), [curl](<https://devfeed.tech/tags/curl.md>), [esp32](<https://devfeed.tech/tags/esp32.md>), [http](<https://devfeed.tech/tags/http.md>), [http-server](<https://devfeed.tech/tags/http-server.md>), [network](<https://devfeed.tech/tags/network.md>), [security](<https://devfeed.tech/tags/security.md>), [wi-fi](<https://devfeed.tech/tags/wi-fi.md>), [wifi](<https://devfeed.tech/tags/wifi.md>)

## AI overview

This tutorial explains how to let a smart device on a user's home network expose a /power HTTP URI. GET reports the device's current output state, while POST updates it. It also shows registering handlers, testing with cURL, using a phone app, and the security implications of relying on Wi-Fi protection.

## Source excerpt

So you have your smart device on your end-user's home network. Now you would want your user to access your device over the local network. That's what we will look at in this post. Let's say you are building a smart plug, and you want to toggle the power on or off on your plug. We will create a HTTP URI */power *on your device. - An HTTP GET on this URI will give us the current state of the output of the plug. - An HTTP POST on this URI will update the output state of the plug.