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

learn more… | top users | synonyms

0
votes
1answer
21 views

how to see a http reponse message using telnet command? [duplicate]

I am trying to telnet to different web servers and see what http response messages I get. I've tried telnet some_host_name 80, and then the shell says connected to some_host_name escape character is ...
32
votes
7answers
8k views

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 ...
3
votes
1answer
16 views

Reassemble images forwarded though Linux router?

In 2003-2004 I used a Linux app that reassembled images from HTTP traffic forwarded through a Linux router, displaying them live. Just a command line app that threw up an X window, showing the images ...
1
vote
1answer
32 views

Apache Web Server Load Testing ( Running on Centos6) [closed]

How can i easily test how many requests my web server ( Apache) setup can handle without dropping a connection or timing out. Is there any simple bash script or i have to use some sophisticated ...
0
votes
0answers
32 views

Scanning files over http by suricata or snort

I want to use IDS or IPS system like Snort or Suricata for the purpose of scanning files which are send by HTTP (or different way). Let's assume that files are not encrypted by the way. Any rule or ...
25
votes
6answers
14k views

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 ...
0
votes
1answer
36 views

can not access HTTP site with squid3

I have a problem here, i have installed squid3 but it cant access http site like http://kompas.com , but it can access https like https://google.com here is my squid.conf #acl localnet src ...
2
votes
1answer
729 views

mplayer not sending the correct user-agent

I am trying to play a stream through mplayer. Here is the command I execute: mplayer -user-agent "PS4 libhttp/1.60" -cache 8192 -v ffmpeg://http://the_stream_url.m3u8 The stream does not play due ...
1
vote
1answer
37 views

Mount HTTP directory on Raspbian?

Is there a way to mount an HTTP resource in Raspbian (default Raspberry Pi OS)? I have an HTTP server hosting music, and I would like to be able to have read-only filesystem access to that music on ...
0
votes
1answer
24 views

Can't access web sites when running iptables script!

I have wrote script for protecting my machine: #!/bin/bash ssh=1.1.1.1 http='1.1.1.1 2.2.2.2' # Clear any previous rules. iptables -F # Default drop policy. iptables -P INPUT DROP iptables -P ...
1
vote
1answer
39 views

Managing iptables for specific ips and ports

I disable firewall like so: #!/bin/bash iptables -F iptables -X iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT Update I also enable my firewall: #!/bin/bash ...
14
votes
4answers
14k views

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 ...
0
votes
0answers
42 views

Google Drive HTTP Error when downloading .zip file with Firefox

I'm using openSUSE 42.1 and opened a fresh install of Firefox, but somehow when I try to download a zip file from my Google Drive, an error is shown: Could not download "[filename]". HTTP error. ...
0
votes
0answers
82 views

wget failing with 404 File not found

I have two instances of jboss running on the same server with two different ports. ( 8280 & 10580). I am facing issue while downloading a file using wget on Port 10580 , but the file is getting ...
0
votes
0answers
17 views

How to enable http for Synology via ssh

I have problems connecting to my Synology NAS via https, to fix it I'd like to connect to the NAS by HTTP, but it's currently disabled. Is there a way to enable HTTP connections from terminal ...
2
votes
1answer
691 views

OpenWRT redirect traffic based on requested domain/port pair

If we would have an OpenWRT router, would we have a solution for redirecting the users traffit to HTTPS if they would request a plain HTTP website based on domain name? Example: If the traffic wants ...
1
vote
2answers
60 views

99% file download

We have server under Ubuntu 12.04 with Apache HTTP 2.2 installed there. Kernel 3.2.0. Faced with weird behavior during dowloading some files. Virtualhost config: <Directory /var/www/name/*> ...
2
votes
2answers
51 views

Find IP owners from apache log file

I have the top 10 IPs making the most requests and the number of requests made from Apache log file example. I used this bash command to handle a request: cat access_log|cut -d' ' -f1|uniq -c|sort ...
0
votes
2answers
26 views

Apache map a port to a public directory

I have this directory in a vm /www/app1 and I want to be able to go to http://192.168.1.1:7778 and go to that directory how do I configure that using CentOS 7 minimal install? I just went through ...
1
vote
1answer
80 views

GET URI from webserver by IP address not matching hostname's IP

Using curl, I would like to request a URI from a web server via a specific IP address that does not necessarily match the forward DNS of the hostname. For example, suppose the hostname ...
0
votes
1answer
45 views

Download files from the file with same path directory

I need a simple command/script which allows me to download hundreds of files from the file in the same path structure as on the remote server. For example: ...
34
votes
11answers
29k 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.x. apache) with ...
8
votes
2answers
4k views

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 ...
0
votes
2answers
79 views

How to get the contents of a webpage but after running javascript?

I am trying to download the contents of a web page using curl but it seems l am missing some content that l suspect to be generated by JavaScript. If the page runs on the browser l am able to get all ...
0
votes
1answer
102 views

Puppet Master: TCPServer Error: Address already in use - bind(2) - WEBrick 1.3.1

I rebooted Puppet Master several times but always this error [root@puppet-master04 ~]# service httpd restart Stopping httpd: [ OK ] Starting httpd: ...
1
vote
4answers
493 views

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 ...
0
votes
2answers
19 views

try download a file from server if the pathname is known

I access a webpage by this url http://someRandomName.no.meaning:20025/hello.html The location of the hello.html that is displayed is /var/some/fulder/hello.html. (I mean in the server it is ...
6
votes
3answers
611 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 ...
6
votes
1answer
538 views

IPtables - new vs new, established, related

I'm «pretty» new to IPtables, or I have used IPtables a few years, but never with advanced features. I understand the concept of stateful IPtables rules, but recently I discovered that some people ...
0
votes
1answer
44 views

Unwanted and or Abusive Web Requests

We have been contacted by our server host provider about Unwanted and or Abusive Web http Requests going out from our server. The information they gave us are. Block Type: New Ban Time: 2015-10-01 ...
1
vote
1answer
39 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: ...
0
votes
3answers
59 views

Call an URL on debian from command shell

I need a command which will just send http request to required web directory? Does something like this exist?
0
votes
1answer
50 views

Browser (HTTP client) with support of bzip2 or lzma2 compression?

What browsers (HTTP clients) support HTTP compression using bzip2 or lzma2? (HTTP compression for page requests) I have only heard of Firefox patch, but I am not sure if it actually supports ...
0
votes
0answers
30 views

How do I create a deflate file suitable for HTTP?

Say I have index.html. How do I obtain index.html.deflate appropriate for serving through HTTP with the "deflate" encoding? I am coding a simple web server and I don't want to implement streaming ...
1
vote
1answer
90 views

Large downloads interrupted on nginx reload

I'm running nginx 1.9.3. When downloading a large file (in this case, 1GiB), and reloading nginx via "nginx -s reload", the download gets interrupted in numerous browsers, including (but potentially ...
3
votes
0answers
95 views

Using socat to Tunnel/Proxy TCP want to split send/receive into separate files

I'm using socat to dump plain TCP (e.g. HTTP) traffic: socat -v tcp-listen:$PORT,reuseaddr,fork,keepalive tcp:$TARGET_HOST:$TARGET_PORT At the moment all send and receive traffic is dumped into ...
1
vote
1answer
240 views

logrotate every 2 hours

I'm trying to make httpry logs every 2 hours. I added this to my logrotate.conf file: /var/log/httpry/*.log { rotate 1 weekly create 640 root admin missingok notifempty } I ...
8
votes
2answers
2k views

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 ...
1
vote
3answers
504 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 ...
1
vote
1answer
140 views

Redirect outbound traffic on LAN going to port 443 to port 80 or 8080 instead

How would I achieve this, I've tried using iptables a bit but have had no success at all. Any help at all would be appreciated. I basically just want it so that whenever a user on my LAN attempts to ...
0
votes
1answer
184 views

Using curl with xargs connection hanging sometimes - any way to retry?

echo $LIST | xargs -I{} -n 1 -P 8 sh -c 'curl -o backup.dump http://url.com' I am running this for a large amount of files (around 300). After a while, sometimes curl hangs and won't progress for a ...
1
vote
0answers
153 views

Bash CGI script won't run [closed]

I have made a webpage to control the GPIO pins of my raspberry pi to control a rc car. I use cgi scripts written in bash. I can let the car drive forwards with this script: #!/bin/bash gpio -g write ...
1
vote
1answer
149 views

Upload from shell to HTTP Server

I use scp command to upload file from my local computer to my ftp server is there any tools to do the same thing with http server (like Apache server ) like scp do ?
1
vote
1answer
310 views

get original creation date of html file

Can I find the creation/last modified date of an html file? For example, I would like to know when some index.html file from some website was created, not when I downloaded it.
1
vote
2answers
7k views

Type URL and show HTTP status

I want to make a shell script where I type an url and it returns me the status code.So far I've tested wget is there any other cause it has the tendency to save whatever you run. Then I tried to some ...
2
votes
1answer
516 views

How to implement retry mechanism while executing the server url in the shell script?

I am working on a project in which I need to make a url call to one of my server from the bash shell script.. http://hostname.domain.com:8080/beat After hitting the above url, I will be getting the ...
3
votes
3answers
101 views

How can I list every port serving a web page

I have a number of servers, all with various HTTP(S) services accessible on a variety of ports. It's incredibly difficult to keep track of which service is available under which host and what port. ...
2
votes
1answer
325 views

Problem with pkg behind a chunking proxy

I have a freshly installed FreeBSD 10.1 at work in a VM. As it is behind a corporate proxy, I had to set HTTP_PROXY in environment and it began to run fine. But no way to get pkg to work correctly. I ...
2
votes
3answers
5k views

How to change user agent on all http requests made from my machine with Squid intercepting proxy?

I'd like to change the user agent on all HTTP requests made from this machine. It's easy enough to change the user agent in each browser, but other apps also make http requests. It's vital I catch ...
10
votes
3answers
5k 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 ...