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
19
votes
4 answers

mongoose web server helloworld program

I came across an embedded web server named mongoose and http://code.google.com/p/mongoose/ and I read the wiki it was great and i searched for some sample hello world program but i couldn't find it... i found some example but that was written in c++…
raagavan
  • 951
  • 3
  • 12
  • 16
10
votes
3 answers

libcurl delays for 1 second before uploading data, command-line curl does not

I am using libcurl to send an API command to a local service (i.e. on 127.0.0.1). The program is intended to replace a shell script (that uses the curl program.) Everything is working, except that there is a 1-second delay somewhere, i.e 1 second…
finnw
  • 47,861
  • 24
  • 143
  • 221
7
votes
3 answers

Parse REST query in C++

I'd like to expose a REST API on my application, using the Mongoose web server and providing handlers for different queries. An example of query would be like this (I'm only using GET for the moment, the rest of HTTP verbs will come later): GET…
Gui13
  • 12,993
  • 17
  • 57
  • 104
4
votes
2 answers

XOR strings: JS vs PHP

I tried to XOR two strings in PHP and in JS and I got different results: PHP function function xh($a, $b) { $res = ""; $i = strlen($a); $j = strlen($b); while($i-->0 && $j-->0) { $res.= $a[$i] ^ $b[$j]; } return…
Jan Turoň
  • 31,451
  • 23
  • 125
  • 169
4
votes
1 answer

pthread win32 version? (Mongoose)

Please tell me what difference between pthread versions: VC2, VCE2 and VSE2? How to choose which of them I must use with Visual C++ Express 2010 for Mongoose webserver library? Thank you!!!
Edward83
  • 6,664
  • 14
  • 74
  • 102
4
votes
1 answer

Mongoose: Browser should not open

The application that I'm developing right now uses Chromium Embedded Framework to handle multiple display webapp. The Mongoose executable is ran by the framework at run time. At the same time however, Mongoose runs an instance of Google Chrome. As…
benjtupas
  • 610
  • 9
  • 25
3
votes
2 answers

MongoDB API pagination

Imagine situation when a client has feed of objects with limit 10. When the next 10 are required it sends request with skip 10 and limit 10. But what if there are some new objects were added (or deleted) to collection since the 1st request with…
3
votes
2 answers

Passing data between c and php

I have two application - a php web application and c program. The php app has to send data to the c program which returns results. The c program has to run all the time in a cycle (while(true), because it has to hold data of previous input in…
jonas
  • 125
  • 2
  • 8
3
votes
2 answers

stack overflow in mongoose on every request

I'm developing a simple moongose based web server to send a file passed as argument over HTTP whatever the request is, but on each request I'm getting a stack overflow error. Here is my code: #include #include #include…
Ben
  • 966
  • 2
  • 10
  • 24
2
votes
3 answers

Apache resource usage vs Mongoose or other lightweight web server

How much memory and/or other resources does Apache web server use? How much more are lightweight servers efficient? Say appache vs. Mongoose Web Server Neil Butterworth you out there? Thanks.
T.T.T.
  • 33,367
  • 47
  • 130
  • 168
2
votes
1 answer

mongoose http modify file output

What is the best approach to modify the output of a file served by mongoose mg_http_serve_dir and mg_http_serve_file. I am using this example https://github.com/cesanta/mongoose/blob/master/examples/http-restful-server/main.c I am searching for a…
1u1u
  • 141
  • 1
  • 5
2
votes
4 answers

Running Python Scripts in Mongoose

I want to run python scripts on the mongoose web server. It worked fine with php-cgi.exe but not with python.exe. Test script test.py: print("Content-Type: text/html") print("") print("

Hello World!

") Mongoose configuration mongoose.conf: m…
Marc
  • 13,011
  • 11
  • 78
  • 98
2
votes
2 answers

Embedding Mongoose Web Server in C++

I just embedded the Mongoose Web Server into my C++ dll (just a single header and recommended in most of the stack overflow threads) and I have it up and running properly with the very minimal example code. However, I am having a rough time finding…
user470760
2
votes
0 answers

Server Discovery And Monitoring engine is deprecated, previous post doesn't help out

enter code here(node:20092) [MONGODB DRIVER] Warning: Current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true…
2
votes
1 answer

Mongoose is blocking other requests and processing them one by one

I tried to run "restful_server" example under the "examples". ev_handler function processes all requests one by one so a request has to wait until the prior request has been completed. /* * Copyright (c) 2014 Cesanta Software Limited * All rights…
amone
  • 3,712
  • 10
  • 36
  • 53
1
2 3
9 10