How to get ESP8266 to take an api call/handle submit

What I am looking is for either or both of the following.

1,) Receive a post and respond from/to a client on the same wifi as the SoftAP.192.168.4.1

and/or

2.) Response to a POST ( Form being submitted ) on the form on the root. 192.168.4.1 SoftAP

Can someone point me to examples, thanks. What I am trying to achieve is the easiest method that someone could use to send credentials for the the chip for WIFI SSID/Password for first time they setup.

I know there is a WifiManager lib, but would prefer to do it myself.

Thanks G.

Hey There,

Thanks but that didn't work at all, I had some success with another script instead, but that doesn't really do what I want either.

Thanks for trying though.

G