Skip to main content

Questions tagged [http]

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

Filter by
Sorted by
Tagged with
21 votes
3 answers
11k views

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 ...
Mussnoon's user avatar
  • 353
4 votes
3 answers
37k views

echo text after curl command on same line

#!/bin/bash echo "$(curl -s -I https://google.com|grep Server)" abc returns: abcer: gws and bash -x shows: ++ grep Server ++ curl -s -I https://google.com ' abco 'Server: gws abcer: gws but ...
w00t's user avatar
  • 151
8 votes
2 answers
1k views

Are there any good tools besides SeleniumRC that can fetch webpages including content post-painted by JavaScript?

One major shortcoming of curl is that more and more wepages are having their main piece of content painted by a JavaScript AJAX response that occurs after the initial HTTP response. curl never picks ...
dan's user avatar
  • 4,097
1 vote
1 answer
578 views

Bash displaying gibberish after specific incoming request

I set up a new, basic Linux server (CentOS in this case) just for testing purposes. In there, without any firewalls and all that I'm running a Python web application. Basically I type python run.py ...
adamczi's user avatar
  • 251
226 votes
22 answers
345k views

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 ...
Cid's user avatar
  • 2,475
41 votes
2 answers
182k views

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 "...
Wes's user avatar
  • 831
7 votes
4 answers
21k views

Using telnet to get website header

I have question, is it possible to get header of website by using telnet? Website looks like this domain.name.server.com/~USER (just example). And I want to get it header by telnet. telnet domain....
MyUnix's user avatar
  • 71
1 vote
1 answer
9k views

How to send curl request with post data imported from a file

I have a below curl command which works fine and I get the response back. I am posting json data to an endpoint which gives me response back after hitting it. curl -v 'url' -H 'Accept-Encoding: gzip, ...
David Todd's user avatar
14 votes
3 answers
14k views

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 ...
Harry's user avatar
  • 812
6 votes
2 answers
9k views

How to access http server from bash script with existing tcp connection?

In a bash shell scipt, I use several command line tools (wget, curl, httpie) to test my http server. When using e.g. curl to invoke a GET request, I see that a tcp connection is opened to my server ...
Joe's user avatar
  • 759
4 votes
2 answers
326 views

Launching Multiple Queries With Bash Script

I have the following bash script (on this post): #!/bin/bash while read LINE; do curl -o /dev/null --silent --head --write-out "%{http_code} $LINE\n" "$LINE" done < infile > outfile infile: ...
acgbox's user avatar
  • 951
3 votes
0 answers
81 views

Use command line to download file which is accessible only in a given session [duplicate]

Possible Duplicate: Does anybody here have experience in automating some tasks in web applications using curl? Sorry for the lengthy title. I am trying use command line to download a file,which ...
xiaohan2012's user avatar
  • 1,715
3 votes
1 answer
3k views

Anyway to use HTTP Authentication with Axel Downloader?

Is there anyway to use http authentication with axel downloader? I don't want to use another solution such as aria2c because they don't support more than 16 concurrent connections.
Zim3r's user avatar
  • 235
2 votes
2 answers
2k views

Run my own HTTP fast-browsing proxy a la Opera Mini?

Opera Mini is a great browser that works well on feature phones and iPhones. Unlike most browsers, it uses Opera's servers to transcode every page you browse to into a small, easy-to-render chunk that'...
themirror's user avatar
  • 7,028
1 vote
2 answers
923 views

How does this nc command work as a HTTP server?

There is an answer that serves a file over HTTP using nc { echo -ne "HTTP/1.0 200 OK\r\n\r\n"; cat some.file; } | nc -l -p 8080 { echo -ne "HTTP/1.0 200 OK\r\nContent-Length: $(wc -c &...
Tim's user avatar
  • 103k
1 vote
1 answer
546 views

Iptables dropping HTTP 302 packages contain suspicious domain string

The HTTP 302 packages I want to block have: Header HTTP/1.1 302 Found Location: http://www.yxjiaodai.com/ad/?id=1023&url=http%3A//a1819.oadz.com/link/C/1819/3081547/dtMdon4l79FwsIo2JXEHqtdp5eQ_/...
Edward's user avatar
  • 195
-1 votes
1 answer
77 views

Is the concept of file permission only applicable when access is via shell?

So in Linux we have a concept of file permission. There are three classes: user, group, and others, and there are three types of permissions: read, write, and execute. Now consider this. You are on a ...
Noob_Guy's user avatar
  • 203