http-server

Can you compile Apache HTTP Server and redeploy its binaries to a different location ?

As part of our product release we ship Apache HTTP Server binaries that we have compiled on our (UNIX) development machine. We tell our clients to install the binaries (on their UNIX servers) under the same directory structure that we compiled it under. For some clients this is not appropriate, e.g. where there are restrictions on where...

How to Build a simple HTTP server in C

I need to build a simple HTTP server in C. Any guidance? Links? Samples? Thanks! ...

What is the preferred way to serve web applications written in Lisp?

I've been researching modules for Nginx (my preferred webserver) to serve a Lisp webapp, but I haven't been able to find anything. Is there modules for Nginx, or is there better ways to serve Lisp webapps? If so, what are they? ...

How do I create an HTTP server in Python using the first available port?

I want to avoid hardcoding the port number as in the following: httpd = make_server('', 8000, simple_app) The reason I'm creating the server this way is that I want to use it as a 'kernel' for an Adobe AIR app so it will communicate using PyAMF. Since I'm running this on the client side it is very possible that any port I define is al...

What classes do I use to make an iPhone act as a server?

I'm looking for an easy way for users to download content from an iPhone to their computer. I've seen other apps that actually turn the iPhone into a server and give the user an IP address to navigate to on their computer. I've glanced at some Apple samples, but nothing looked too much like what I was going for. So what's the easiest ...

How to serve any file type with Python's BaseHTTPRequestHandler.

Consider the following example: import string,cgi,time from os import curdir, sep from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer class MyHandler(BaseHTTPRequestHandler): def do_GET(self): try: if self.path.endswith(".html"): f = open(curdir + sep + self.path) #self.path has /test....

Embedded HTTP server in Swing Java app

I wish to embed a very light HTTP server in my java swing app which just accepts requests, performs some actions and returns the results. Is there a very light java class that I can use in my app which listens on a specified port for Http requests and lets me handle requests? Note that I am not looking for a stand-alone http server, ju...

Pass POST variables to PHP executable

I have been writing an HTTP server in C#, and I've gotten to the point where I want to implement PHP. However, I cannot seem to find a way to pass POST variables to the PHP-CGI executable. I know that I am supposed to use environment variables to communicate with the executable, and most importantly the QUERY_STRING variable. This one ju...

Handling CGI requests in a bare-bones http server

I am writing a basic http server in C. Handling a simple static .html file is easy but I have no idea how to handle dynamic .pl .cgi file extensions. I know I will have to use exec() but how is my question? ...

How can I get $cgi->state to return meaningful information under HTTP::Server::Simple?

First, here is the code I am using (you'll need version 0.42 of HTTP::Server::Simple to run it): #!/usr/bin/perl package My::HTTP::Server; use strict; use warnings; use parent 'HTTP::Server::Simple::CGI'; sub handle_request { my $server = shift; my ($cgi) = @_; print $cgi->header('text/plain'), $cgi->state, "\n"; } packa...

iPhone: How to Share/Move Files from App Directories to Other Devices

Hello everyone I have an app which generates some files in the app directories I need users to be able to access the files from another device/computer via file sharing over wifi, using a web browser, a ftp client or some similar method. Can the iPhone act as a http server and ftp server by itself or do I need to do some programing to...

Python Desktop Application with the Browser as an interface?

I want to create an application that runs on the users computer, a stand-alone application, with installation and what-not, but I want the interface to be a browser, either internal and displayed as an OS window or external accessible using the browser (i.e. some http server). The reason would be because I know a little about Python, bu...

Adobe AIR application as a http server?

Is there any way to use an Adobe AIR application as a local http server? i.e. Adobe AIR application listening to http://localhost:8020 and I'm able to use a browser to access the application? If I can, is it true or pseudo multithreading? Is there any library or code that I can look for? ...

Open Source .NET embedded web/http server

I am working on a project where I need to embed a web server into my C# application so the application could display it's status via HTTP. I suppose I'll want to configure it through the http also. I am looking for an open-source library written in C# and with a licensing scheme that will allow me to link it into my existing closed sou...

Remote Control Software with queue for multiple users?

Is there a remote control software or a http-server available, which has a queue implemented, so that one after another client has the chance to control the screen on the host? Thanks a lot ...

how to convert a serverSocket into httpServer?

hi, i have a server socket on pc and client on android, i want to convert the serverSocket to httpServer (and the client too) without changing any of the functionality. What is the quickest way to do it? (i read that in http i need to implement some functions, like GET,POST,... is there a way to avoid it? because the server is for a spec...

Compiling Apache HTTP Server (httpd) 2.2.16 with OpenSSL

Apache 2.2.16 is currently the "best available version" of the HTTP Server. I made some changes to the source and need to recompile with OpenSSL. My question is, should I use OpenSSL 0.9.8o or OpenSSL 1.0.0a? The latter is a more recent, major release, but Apache couples HTTPD 2.2.16 with OpenSSL 0.9.8o in their binary offering. See ...

simple HTTP server in Java using only Java SE API

Is there a way to create a very basic HTTP server (supporting only GET/POST) in Java using just the Java SE API, without writing code to manually parse HTTP requests and manually format HTTP responses? The Java SE API nicely encapsulates the HTTP client functionality in HttpURLConnection, but is there an analog for HTTP server functional...