Questions tagged [mongoose-web-server]

Mongoose embeddable web server

Mongoose is a lightweight embedded web server that makes it easy to implement a web interface for an application or an embedded device. It is cross-platform and supports CGI, SSL,SSI, Digest auth, WebDAV and websocket.

A question tagged with is expected to include queries regarding the Mongoose web server

Mongoose is licensed under the terms of GNU GPL v.2 license

Businesses have an option to get a non-restrictive, royalty-free license and professional support from Cesanta Software.


###Useful links


###Related tags

148 questions
1
vote
0 answers

Setting enable_keep_alive to "yes" is causing Mongoose server to hang

I tried to use keep-alive connection in mongoose and noticed it is sometimes hanging. How can I solve this?
ManojMarathayil
  • 712
  • 11
  • 28
1
vote
2 answers

How to handle/kill Zombie or process for cgi script (C++) on "mongoose webserver" (Linux)?

I have a CGI script running on "mongoose webserver" written in C++ (independent of mongoose specific APIs for portability in the future) on Ubuntu 10.04. Whenever I invoke the script from web browser (Chrome), the process works fine but when I run…
enthusiasticgeek
  • 2,640
  • 46
  • 53
1
vote
1 answer

File upload issue in Mongoose

I am using Mongoose 6.18 version as an Embedded Web Server for my project. I have an issue when I try to upload a file to the server. I have a react application on the front end that uses axios api with formdata to send the file. `` await…
JPillai
  • 11
  • 3
1
vote
2 answers

Mongoose Update By Passing In Array of Documents

Would functionality similar to this be possible: let Item = mongoose.model('Item') let updatedItems = [updatedItem1, updatedItem2] let updatedItemIds = [updatedItem1._id, updatedItem2._id] Item.updateMany({_id: {$in: updatedItemIds }},…
1
vote
0 answers

Not showing database in mongodb compass

I am trying to connect my node.js server to the mongo database. I have created a database name "breathe_in_db" in dealer-database.js file and When i try to run the server It says that i have successfully connected to the database on terminal…
1
vote
1 answer

how to get domain name in mongoose server c++

I am using http://code.google.com/p/mongoose/ server inside my c++ application. I am looking a way to find domain name in c++ code. Is there any api in mongoose to get current domain name ?
Vivek Goel
  • 22,942
  • 29
  • 114
  • 186
1
vote
2 answers

Stuck in loading with mongoose

I am trying to create a web-application with node.js, mongoose and MongoDB, I am trying to load the web-page localhost:8800/api/auth/register which is stuck at loading since past 15 minutes. VS Code Terminal return the following : (node:2908)…
1
vote
1 answer

Mongoose if (!this.modelSchemas[name]) error

Whenever I try connecting using the code below, const mongoose = require('mongoose'); // var Model = mongoose.model.bind(mongoose); didnt work var imageSchema = new mongoose.Schema({ name: String, dob: String, breed: String, details:…
1
vote
1 answer

Cesanta Mongoose - problems when connecting to localhost

I'm having issues building an HTTP server using the Cesanta Mongoose web server library. The issue that I'm having occurs when I have an HTTP server built to listen on port 8080, and a client sending an HTTP request to localhost:8080. The problem is…
1
vote
1 answer

hello world example for a mongoose webserver with SSL in C

I am trying to set a mongoose web server v3.3 with a self-signed SSL certificate. I know how to do it without SSL but I want to implement HTTPS. I have implemented something like this: void *event_handler(enum mg_event event, struct mg_connection…
1
vote
1 answer

How to have mongoose managing multiple websocket URL

I have the websocket examples for Mongoose 6.12 running well on my embedded platform. What I am wondering is how is it possible to manage multiple URL of websockets? Our goal is to have multiple web pages on our platform, each one periodically…
Frederic D
  • 13
  • 2
1
vote
3 answers

Web server config - shttpd/Mongoose

http://code.google.com/p/mongoose/ http://shttpd.sourceforge.net/shttpd.1.txt Trying to configure the lightweight web server shttpd now called mongoose to execute CGI scripts in C. Does it need a seperate CGI interpreter for C? A download of…
T.T.T.
  • 33,367
  • 47
  • 130
  • 168
1
vote
1 answer

Mongoose C++: How to parse HTTP GET or POST request using mongoose?

I am trying to create a simple c++ web-based GUI. I am not interested in using Qt or Visual Studio based GUI. I am rather interested in web based as my requirements are very minimal and basic. So I came across "Mongoose" the C-based web server.…
user1453817
  • 77
  • 2
  • 9
1
vote
1 answer

Errors when retrieving request body in Mongoose WebServer

I'm working with an old version of mongoose (open source web server) in C, which did not provide native access to the requests payload. In order to support POST and PUT requests, I manually modified it: after mongoose reads the headers, I check if…
phagio
  • 196
  • 1
  • 14
1
vote
1 answer

How to use http websocket on Mongoose embedded web server with SSL?

I'm trying to use Http WebSocket on Mongoose embedded web server with SSL. And I tried this mongoose example called "simplest_web_server_ssl". But when I executed the program, it printed out this message below. "Failed to create listener: Invalid…
1 2
3
9 10