Coder Social home page Coder Social logo

Comments (3)

eerimoq avatar eerimoq commented on July 20, 2024

I'll see what I can do. I'm currently porting MicroPython on Simba (Pumbaa) to the ESP8266 and it has taken longer than expected. I should be fairly close to have it finalized.

Feel free to implement the POST method and be part of the Simba Project =)

Which header fields in a POST action do you want to access? Currently the header is parsed but all its content except a websocket key is discarded. I guess you at least want to access the contents length and content type?

POST /path/script.cgi HTTP/1.0
From: [email protected]
User-Agent: HTTPTool/1.0
Content-Type: application/x-www-form-urlencoded
Content-Length: 32

from simba.

wzk avatar wzk commented on July 20, 2024

Thank you for your attention, I need Content-Length and Content-Type fields, is there a function to parser form data, eg. I can use findKeyVal("key") to get "value", findKeyVal("key1") to get "value1".

  POST / HTTP/1.1
  Host: 192.168.0.247
  User-Agent: curl/7.47.0
  Accept: */*
  Content-Length: 21
  Content-Type: application/x-www-form-urlencoded

  key=value&key1=value1

from simba.

eerimoq avatar eerimoq commented on July 20, 2024

No there is no such function.

I implemented the POST action in the HTTP server. Have a look at c6c6802.

from simba.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.