Giter VIP home page Giter VIP logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
Hmm. Accessing PUT data, that sounds odd to me.
Could you elaborate more on your use case, please?
How do you setup a handler (do you know the name of PUT-ted files beforehand or 
do
you use wildcard), and why do you need to handle PUT request in the first place?

Original comment by valenok on 27 May 2009 at 4:17

from mongoose.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
I am implementing a REST interface in an embedded application.  The put data 
needs to
be interpreted as an action to be executed inside of the embedded app. 

See http://en.wikipedia.org/wiki/Representational_State_Transfer for more on 
REST.

Original comment by [email protected] on 22 Jan 2010 at 9:19

from mongoose.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
You can process PUT totally in embedded mode - just catch MG_NEW_REQUEST event,
and do mg_read().

Original comment by valenok on 7 Sep 2010 at 7:39

  • Changed state: WontFix

from mongoose.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 19, 2024
Are you saying something like this?

myEventHandler(...)
{
...
if( !strcmp(ri->request_method, "PUT") )
   mg_read(conn, buf, 1024);
...
}

This does not work as the code inside mg_read skips everything for non-POST 
request. So it PUT doesn't work for PUT.

  if (strcmp(conn->request_info.request_method, "POST") == 0 &&
      conn->consumed_content < conn->content_len) {

Original comment by [email protected] on 23 Sep 2010 at 4:44

from mongoose.

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.