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
2
votes
1 answer

can i restrict mongoose web server to not Accept http request but only from the host application

Hi I embedded the mongoose web server in my application it just showing bunch of web pages I opening port on localhost , but its mean I can send request from any ware in the network , this is something I like to prevent Is there any way to tell…
user63898
  • 29,839
  • 85
  • 272
  • 514
2
votes
1 answer

mongoose server in c++

I am developing an API server in c++ OOP using mongoose library i kept getting errors can someone look at my code and give me some pointer. embServer.h class embServer { private: constexpr static const char *s_http_port = "8000"; …
DavidoLLP
  • 45
  • 8
2
votes
1 answer

How to implement SSL with embedded mongoose

I try to add SSL to my web server implemented with mongoose, but I don't manage to make it work. I have openssl installed and I try to follow the documentation there https://github.com/cesanta/mongoose/blob/master/docs/SSL.md I have SSL…
Alexandre
  • 3,088
  • 3
  • 34
  • 53
2
votes
1 answer

Sending data in second thread with Mongoose server

I'm trying to create a multithread server application using mongoose web server library. I have main thread serving connections and sending requests to processors that are working in their own threads. Then processors place results into queue and…
Zoellick
  • 73
  • 1
  • 2
  • 8
2
votes
1 answer

How Does One Send BOTH HTML and Images Using libMongoose/Embedded Mongoose?

So the Mongoose.c library is pretty straight-forward. I've been able to use their event system, URL recognition, multi-form example, and their connection system to build a simple login-system. I've used C++ minGW, the mongoose.c&.h, and my browser.…
2
votes
1 answer

Mongoose should render an html file

I observed that when the Mongoose server event handler is NULL, an HTML file (for example, localhost:8080/index.html) is rendered without any hassles at out. Here's the code taken from the example of the Mongoose Github repo at…
benjtupas
  • 610
  • 9
  • 25
2
votes
1 answer

Force ask where save file before download

I have an embedded system with a web server Mongoose, I have to allow the client to download some log files generated at runtime, I have a problem during the download, in practice, the browser first downloads the file and then asks where to save the…
ajima
  • 21
  • 3
2
votes
1 answer

System() call returns 255, but executes afterwards

I am running mongoose 3.7 server on my qnx system. I receive http request to upgrade the firmware. On the request, I use, system() call in the request handler to upgrade the firmware. But, strangely, system() returns 255. The same call was working…
Hariprasad
  • 3,556
  • 2
  • 24
  • 40
2
votes
0 answers

Display html and pass the data from html to mongoose server

I want to dispaly html page through mongoose web server but when i try to load the page using mg_send_file(conn,filename) css and js files does not get loaded is there any other way to load the html through mongoose server and pass the data entered…
2
votes
1 answer

Using mongoose to provide rest api for my C++ application?

I want to use mongoose for exposing rest apis from inside my aplication. However, I do not see any model of how this can be implemented. Does anyone knows if it's possible of feasible to do using mongoose? Can any exemple be provided demonstrating a…
Claudio Junior
  • 295
  • 3
  • 12
1
vote
1 answer

How to keep link alive on mongoose web server

I try to use keep-alive connection mongoose, but it seems mongoose close the connection first. I changed the embed.c to send back the connection: keep-alive. The connection is still closed after response. border@ubuntu:~$ nc 127.0.0.1 9999 GET…
Jiang Bian
  • 1,933
  • 3
  • 16
  • 14
1
vote
4 answers

uses undefined struct compile error - C

The compiler doesn't know where stat.h is? Error: c:\Projects\ADC_HCI\mongoose.c(745) : error C2079: 'st' uses undefined struct '_stat64' #include #include static int mg_stat(const char *path, struct mgstat *stp) { …
T.T.T.
  • 33,367
  • 47
  • 130
  • 168
1
vote
0 answers

mongodb installation problem in ubuntu 22.04LTS

I am unable to complete installation process of mongodb in ubuntu 22.04 system using terminal by following steps Install the dependencies apt update apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common Download…
1
vote
3 answers

mongoose error: model.find() no longer accept call back

Here is my full app.js code. //jshint esversion:6 const express = require("express"); const bodyParser = require("body-parser"); const mongoose = require("mongoose"); const _ = require("lodash"); const app = express(); app.set('view engine',…
1
vote
1 answer

Using Python 3.9.1 and requests 2.25.1 a local connection to a Mongoose HTTP server takes 2 seconds

I am writing a little REST API client using Python, Java and NodeJS. The server is written using the Mongoose HTTP server. With Java and NodeJS every request takes only milliseconds but with Python every request takes 2 seonds. I confirmed that this…
Ray Hulha
  • 10,701
  • 5
  • 53
  • 53
1
2
3
9 10