Questions tagged [http]

HTTP stands for Hyper Text Transfer Protocol and is the protocol used to transfer information around the World Wide Web.

HTTP is just one communications protocol on the web. Others include:

  • Transmission Control Protocol (TCP)
  • User Datagram Protocol (UDP)
  • Internet Control Message Protocol (ICMP)
  • Post Office Protocol (POP3)
  • File Transfer Protocol (FTP)
  • Internet Message Access Protocol (IMAP)

HTTP on Wikipedia

2230 questions
55
votes
1 answer

What does "Connection: close" mean when used in the response message?

When the client uses the Connection: close header in the request message, this means that it wants the server to close the connection after sending the response message. I thought that this header is only used in the request messages, but I have…
user365656
  • 553
  • 1
  • 4
  • 4
54
votes
4 answers

How to enable correct charset HTTP-header in NGINX

What is the right way to enable correct charset headers in NGINX? I'm analyzing my website with Google Page Speed. It says that I should specify the charset of HTML files in HTTP-headers. What is the right way to do this? I already tried to set…
pvorb
  • 1,050
  • 3
  • 11
  • 16
52
votes
8 answers

Can I create SSH to tunnel HTTP through server like it was proxy?

Say I have a server and client. I need to create connection from client to a website through server like it was proxy. Is it possible to do this using a SSH tunel, or do I have to install some proxy service to the server?
Jakub Arnold
  • 1,744
  • 10
  • 26
  • 33
51
votes
5 answers

Is it possible to enable http compression for requests?

I see lots of information about enabling http compression for server responses but what about for incoming requests. Wouldn't it make sense for the browsers to compress large form posts before sending them to the server? Another example is a REST…
Mike L
  • 719
  • 1
  • 6
  • 11
51
votes
4 answers

How do I make cURL use keepalive from the command line?

I'm trying to verify that HTTP persistent connections are being used during communication with a Tomcat webserver I've got running. Currently, I can retrieve a resource on my server from a browser (e.g. Chrome) and verify using netstat that the…
Rob Hruska
  • 683
  • 1
  • 5
  • 10
49
votes
4 answers

What's the maximum URL length in Tomcat?

And is it configurable? Can I set up Tomcat so that a URL with, say, 200K of query params goes through successfully to the contained servlet? Yes, I know one should use POST when you have lots of data; that's a less pleasant option in this…
Michael Gundlach
  • 1,281
  • 1
  • 9
  • 7
46
votes
8 answers

Getting 408 errors on our logs with no request or user agent

I'm getting a lot of requests turning up in our apache logs that look like this www.example.com:80 10.240.1.8 - - [06/Mar/2013:00:39:19 +0000] "-" 408 0 "-" "-" - There seems to be no request and no user agent. Has anyone seen this before?
Glenn Slaven
  • 2,400
  • 2
  • 30
  • 42
46
votes
2 answers

Serve http (port 80) and https (port 443) on same VirtualHost

I need to setup my VirtualHost on Apache to serve on both http and https (using standard ports) If I enable the SSL Engine (as per below) - I get an error when on port 80. The reason is, parts of the site need to be SSL but other parts don't. How…
kron
  • 735
  • 2
  • 6
  • 8
45
votes
6 answers

IIS Log Request Body / POST Data

Does anyone know how I could get IIS to log POST data or the entire HTTP request?
Jim
45
votes
3 answers

Can nginx location blocks match a URL query string?

Can nginx location blocks match a URL query string? For example, what location block might match HTTP GET request GET /git/sample-repository/info/refs?service=git-receive-pack HTTP/1.1
Derek Mahar
  • 901
  • 3
  • 8
  • 16
42
votes
1 answer

Can not get rid of `net::ERR_CERT_COMMON_NAME_INVALID` error in chrome with self-signed certificates

There are numerous question on the web where people are having difficulty setting up self signed certificates for use on internal network. Just to link a few: Getting Chrome to accept self-signed localhost certificate Chrome accept self-signed…
Ashesh
  • 525
  • 1
  • 4
  • 7
42
votes
3 answers

What tools are available on Windows to simulate/emulate network issues?

I am looking for tools for Windows that can act as a reverse-proxy in front of a server to introduce various networking issues like jitter, delays, or packet loss. My preference is a software solution that will work on Windows. Httpd mod_proxy…
Scott Markwell
  • 742
  • 1
  • 6
  • 13
39
votes
11 answers

Tools for load-testing HTTP servers?

I've had to load test HTTP servers/web applications a few times, and each time I've been underwhelmed by the quality of tools I've been able to find. So, when you're load testing a HTTP server, what tools do you use? And what are the things I'll…
David Wolever
  • 2,267
  • 3
  • 24
  • 27
37
votes
3 answers

When to turn TCP SACK off?

I've been looking at Linux tuning params and see some configs where SACK is turned off. Can anyone explain this? This would be tuning for a busy web server.
JB.
  • 513
  • 2
  • 10
  • 10
36
votes
3 answers

Examples of 302 vs 303

What is the difference between a 302 and 303 response? http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html 10.3.3 302 Found 10.3.4 303 See Other Are these interchangeable or why would one be used over the other? Could you please provide a use…
David542
  • 939
  • 3
  • 10
  • 15