Questions tagged [http]

All about programs and services that use the Hypertext Transfer Protocol.

The Hypertext Transfer Protocol (HTTP) is a protocol that is ubiquitous on the Internet. All web traffic is transferred by HTTP, but HTTP is also used for web services. HTTP follows a simple request-response paradigm, and since HTTP is a stateless protocol, individual requests are not correlated. In order to introduce state, mechanisms like cookies need to be used.

Web servers operate typically on TCP port 80, web proxies operate typically on TCP port 8080. However, this is pure convention, HTTP can be run on ports with any port number. In this case the browser must be told to use the alternative port number by including the port number into the URL.

HTTP that is tunnelled through / is called and usually served on TCP port 443. Beyond that HTTPS is identical to HTTP.

Use this tag for questions on programs and services that use HTTP. For questions specific to web servers the Server Fault Stack Exchange is probably more appropriate.

308 questions
214
votes
22 answers

Simple command line HTTP server

I have a script which generates a daily report which I want to serve to the so called general public. The problem is I don't want to add to my headaches maintance of a HTTP server (e.g. Apache) with all the configurations and security…
Cid
  • 2,355
  • 2
  • 14
  • 6
66
votes
12 answers

How do I get a websites title using command line?

I want a command line program that prints the title of a website. For e.g.: Alan:~ titlefetcher http://www.youtube.com/watch?v=Dd7dQh8u4Hc should give: Why Are Bad Words Bad? You give it the url and it prints out the Title.
Ufoguy
  • 1,210
  • 3
  • 13
  • 21
55
votes
9 answers

Can I create override dns similar to writing in /etc/hosts without root access

I want to set a dns record that my browser will use, but I don't have root access, so I can't modify /etc/hosts. I need to do this for testing vhosts with apache, whose dns hasn't yet been set up. I have access to firefox, and chrome, so if there's…
xenoterracide
  • 57,918
  • 74
  • 184
  • 250
43
votes
5 answers

Generic HTTP server that just dumps POST requests?

I am looking for a command line tool that listens on a given part, happily excepts every HTTP POST request and dumps it. I want to use it for testing purposes, i.e. for testing clients that issue HTTP POST requests. That means I am searching the…
maxschlepzig
  • 56,316
  • 50
  • 205
  • 279
39
votes
2 answers

How to check whether a command such as curl completed without error?

I am using curl to upload a file to a server via an HTTP post. curl -X POST [email protected] server-URL When I manually execute this command on the command line, I get a response from the server like "Upload successful". However, how if I want to…
Wes
  • 801
  • 2
  • 10
  • 17
37
votes
4 answers

Change Apache httpd "Server:" HTTP header

One of the HTTP headers that the Apache httpd sends back with response data is "Server". For example, my web server machine is relatively up-to-date Arch Linux. It sends back headers closely resembling the following: HTTP/1.1 404 Not Found Date:…
user732
37
votes
3 answers

What tool can I use to sniff HTTP/HTTPS traffic?

I'm looking for a command line tool that can intercept HTTP/HTTPS requests, extract information such as: (content, destination, etc.), perform various analysis tasks, and finally determine if the request should be dropped or not. Legal requests must…
slm
  • 363,520
  • 117
  • 767
  • 871
36
votes
7 answers

Download big file over bad connection

Is there an existing tool, which can be used to download big files over a bad connection? I have to regularly download a relatively small file: 300 MB, but the slow (80-120 KBytes/sec) TCP connection randomly breaks after 10-120 seconds. (It's a big…
Crouching Kitten
  • 613
  • 1
  • 6
  • 14
29
votes
4 answers

How do I play an HTTP music stream over SSH?

I know I can just do mplayer to open and play a stream on the local machine. However, I'm behind a firewall. Instead, I'd like to open the stream on a remote machine, but still play it on this one. Remote connections are what SSH is for,…
21
votes
3 answers

Can't access select https sites on Linux over PPPoE

My internet connection used to be a direct LAN connection to my provider. Back then, everything would load fine on both Windows and Ubuntu (dual boot). However, a while ago they started needing me to dial (PPPoE) using a username and password.…
Mussnoon
  • 353
  • 1
  • 2
  • 11
20
votes
4 answers

How am I able to telnet to HTTP port 80?

After searching in google I found out that we can telnet to web-server to its http port and use GET to retrieve a html page. For ex: $ telnet web-server-name 80 But I am not able to understand how is this possible ? I thought that if port 80 is…
sps
  • 1,396
  • 5
  • 15
  • 23
18
votes
2 answers

Sync with a Directory Listing of Web Server

Is there an easy way to keep a folder synced with a directory listing via HTTP? Edit: Thanks for the tip with wget! I created a shell script and added it as a cron job: remote_dirs=( "http://example.com/" "…") # Add your remote HTTP directories…
Lenar Hoyt
  • 714
  • 2
  • 7
  • 18
18
votes
2 answers

Monitor outgoing web requests as they’re happening

I want to see a list of all outgoing HTTP requests from my desktop. I think it should be possible to monitor HTTPS hostnames as well for local clients using Server Name Indication (SNI). OS X has a nice GUI utility called Little Snitch, which is a…
Daniel
  • 1,207
  • 3
  • 14
  • 30
14
votes
3 answers

Mount HTTP Server As File System

I have a machine on which I wish to mount multiple remote servers to access them all centrally. For remote Linux based systems I am using SSHFS which works fine. But for Windows systems, or systems without SSH, they all have some form of HTTP server…
jwbensley
  • 7,402
  • 11
  • 35
  • 43
14
votes
3 answers

Is there any command-line, generic HTTP proxy (like Squid)?

I can easily use Netcat (or, Socat) to capture traffic between my browser and a specific host:port. But for Linux, does there exist any command-line counterpart of a Squid-like HTTP proxy that I can use to capture traffic between my HTTP client…
Harry
  • 802
  • 2
  • 9
  • 21
1
2 3
20 21