Questions tagged [httpserver]

An HTTP Server is any application which receives requests via the HTTP protocol and sends back the corresponding response to fulfill the request.

An HTTP Server is any application which receives requests via the HTTP protocol and sends back the corresponding response to fulfill the request. This is the main method used by websites to handle HTML pages, Stylesheets, Scripts, Images, and other various types of files and requests which a web page may request from the server. HTTP Servers also handle other attributes of such a request, such as Query Strings and Cookies.

1287 questions
-1
votes
1 answer

Broken Pipe in httpServer in java

I made an httpServer in java in order to send files to a client. The problem is that after I send the file I've been asked for me server keeps getting null commands in buffereader and throws broken Pipe exception. Is there a way to avoid getting…
-1
votes
1 answer

Delphi & Indy httpServer how stop sending 400 bad Request

I get data from a device that expects him back ACK (HTTP1/1 200 OK). My httpserver after receiving header is automatically returned 400 Bad Request (i see on WareShark). Perhaps the device is not properly built his request. How do I stop server does…
-1
votes
1 answer

Clustering vs Forking in NodeJS HTTP Server

Is forking more efficient* as compared to clustering in NodeJS HTTP Server? More specifically I'm talking about using http module of NodeJS and child_process.fork and cluster module. *The term efficient constitutes of memory usage and average…
Ozil
  • 945
  • 3
  • 11
  • 28
-1
votes
1 answer

cURL works but none of the rest clients with Go sebserver

Having a simple GO WebServer which accepts an image as part of POST request. Code snippet - Request is mapped to this function func UploadFile(w http.ResponseWriter, r *http.Request, p httprouter.Params) { successResponse :=…
Itachi
  • 1,383
  • 11
  • 22
-1
votes
1 answer

thread pool server shut down gracefully

I have a simple http server implemented with thread pool. I want to shut down the server gracefully. I referred the post Best Way to Gracefully Shutdown a Java Command Line Program Here is the basic code: public static void main(String[] args) { …
printemp
  • 869
  • 1
  • 10
  • 33
-1
votes
1 answer

HttpServletRequest Object in Simple java file

I am working on the Web Project, and i want to get the information of the request object in our simple java program which is not extending the HttpServlet class. The same problem i am facing in the @init() of servlet , i want to call some functions…
-1
votes
1 answer

configuration of domainname in httpd.conf and /etc/hosts

I am facing an issue with configuring domain name in my httpd.conf file. Entry in httpd.conf file. Listen sample.com:443 SSLEnable ServerName MyIHSInstalledServerName KeyFile…
dush
  • 211
  • 4
  • 15
-1
votes
1 answer

Getting data from server in browser without making a request

I've a Javascript app(Not a Node.js one, actually runs on Apache Httpd) which has to recieve data from custom server. So my server sends a post request and i've to recieve it client side javascript. Is there any way to achieve this? Thanks in…
Scorypto
  • 306
  • 2
  • 4
-1
votes
2 answers

Simple Http Server doesn‘t work because of input.read() can't reach the end

I wrote a HttpServer, here is the code snippet: As the snapshot marked, it can't work: This is the result when I visit the HttpServer by browser: I do not know what causes it, anybody could help me? Thanks
Rocky Hu
  • 1,326
  • 4
  • 17
  • 32
-1
votes
1 answer

WAS 8.5 webserver configuration using IBM Http Server

I'm new to Websphere and trying to create a cluster Websphere 8.5 with IBM Http Server as the webserver. My topology is different from all the examples provided by IBM : I have 2 physical machines : machine A and machine B. On machine A :…
Allenzzzxd
  • 28
  • 4
-1
votes
3 answers

File compression library for Java

I am building a Http server. My server's primary task is to respond a request(most times texts, sometimes images) with about 50 thumbnails(10kb each, jpeg), and some String(about 150 characters). To reduce latency I am thinking of compressing the…
Jee Seok Yoon
  • 4,716
  • 9
  • 32
  • 47
-1
votes
1 answer

Python read multiline post data

I'm using BaseHTTPRequestHandler to implement my httpserver. How do a I read a multiline post data in my do_PUT/do_POST? Edit: I'm trying to implement a standalone script which sevices some custom requests, something like listener on a…
Rnet
  • 4,796
  • 9
  • 47
  • 83
-2
votes
1 answer

Golang httptest server circular dependency

I'd like to write a test for a function that Makes a Get request to url1, which retrieves url2 Makes a Get request to url2, and returns the result But I'm not sure how to mock the return value for url2, since I cannot fetch the server.URL before…
Tessa
  • 127
  • 1
  • 7
-2
votes
1 answer

If a website built without port 80, can other client access this website as usual?

I know port 80 is one of well-know-port, but I am confused that if I build the website server process on other port except of 80, would it works when other client try to access this website server?
Eason Wang
  • 29
  • 1
  • 6
-2
votes
1 answer

net/http server freezes under ab (ApacheBench) heavy load

Golang net/http server on MacOS freezes after 16000 requests: $ ab -c 4 -n 20000 http://127.0.0.1:8080/ This is ApacheBench, Version 2.3 <$Revision: 1826891 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The…
Dmitry Mottl
  • 842
  • 10
  • 17
1 2 3
85
86