Skip to main content

Questions tagged [http]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
32 views

Simple systemd socket activation from HTTP request

I want to use systemd socket activation to start a service whenever an HTTP request is received on the listening socket. The incoming message is not important and can be discarded by systemd or the ...
0 votes
0 answers
25 views

Can an HTTP Request work with RSYNC?

So I know RSYNC daemon which negates the usage of SSH in order to send or receive files. However, I'm seeing there's some HTTP GET traffic along with a web-scanning user agent over port 873 to these ...
5 votes
1 answer
13k views

How to use authentication with negiotiation (e.g. Kerberos) to HTTP proxy?

Generally accepted is the use of HTTP_PROXY/HTTPS_PROXY environment variables to specify the use of a proxy server. Authentication can be included in this URL, e.g. HTTP_PROXY=http://user:pass@myproxy....
0 votes
1 answer
38 views

Bot crawling getting 301/redirects instead of 404 so it's hiding from fail2ban. How is it getting 301 intead of 404?

I have fail2ban setup and it's working great for most scanning. It triggers off any 4xx in the nginx error log. However, note the following bot scan. Somehow THIS bot is triggering my server to return ...
20 votes
4 answers
65k 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 how ...
1 vote
1 answer
4k views

Posting to socket using curl

I'm struggling to get curl and socat to play nicely together. The situation is the following: I post XML to login to a system. Return message contains authentication token. I post subsequent requests ...
11 votes
3 answers
32k views

Download Windows ISO from microsoft using wget or curl

Objective: download the official Win10_1909 iso into linux directly via command line Source: https://www.microsoft.com/en-in/software-download/windows10ISO After selecting edition and language you ...
0 votes
1 answer
2k views

mpd httpd not responding to tcp port

I've got a home server with music files stored locally on said server. I've got MPD & ncmpcpp installed on this home server. I'm trying to prototype this so I can go the extra trivial step of ...
0 votes
2 answers
30 views

ProxyPass return 404, but one name OK

Good day to all. I'll give you an example, I tried it There are 2 entries for BalanceMember in /etc/hosts. Of course, don’t look at these virtual machines, it’s a black box. All requests return to 404 ...
0 votes
0 answers
39 views

How to send custom HTTP messages to servers from the Linux command line?

Greetings I've been recently learning the concept of HTTP message sections, due to its importance in the field of socket programming and HTTP server production. I would like to experiment writing ...
0 votes
1 answer
3k views

Why does curl -k -I https://host.example.com not return response headers if certificate is not valid?

Does anyone know why curl with -k (--insecure) option and -I for show headers still shows the html response and not the headers as expected? Working as expected: $ curl -I https://validsslcert.example....
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 ...
0 votes
0 answers
13 views

Invoke cockpit APIs to obtain stats for network, CPU, and memory

I've installed the base cockpit package on an Ubuntu server, and I'd like to gather network, CPU, and memory stats onto one page. Is there a way to invoke the APIs to obtain - either whole HTML ...
0 votes
2 answers
14k views

Return status code and body in curl

Is it possible to use curl to call a REST service (POST method) and get: The HTTP status code. The response body. Other information like headers, methods, etc. are not relevant for my use case and ...
0 votes
2 answers
5k views

403 http code appears when I go to a certain website

I wrote a PHP script to a particular site using a home computer for debugging. Script worked properly, when I tested it on a home computer. The script has stopped working when I deploy the script on ...
0 votes
0 answers
81 views

ufw rule supposed to block traffic but iptables allows it

As a test I wanted to temporarily block access to my website. So, I deleted http/https rules using ufw delete command. ufw is set to default deny incoming. The only remaining rule is the one allowing ...
0 votes
1 answer
182 views

Debian (and ubuntu) having throubles in downloading apt-get updates if I use https

As stated in the previous question: How can i force apt-get or apt to use only https connections deb https://deb.debian.org/debian bookworm main deb https://security.debian.org/debian-security ...
0 votes
0 answers
96 views

why do I have requests from inside apache server with source ports 80 and 443

On one machine, I have a web server running (apache) and responding on ports 80 and 443. On this machine, I have a firewall (shorewall) that blocks everything except what I authorize, and I therefore ...
0 votes
1 answer
3k views

Curl Parallel requests using links source file

I have this script to go through a list of URLs and the check return codes using Curl. Links file goes like this: https://link1/... https://link2/... https://link200/... (...) The script: INDEX=0 DIR=...
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 ...
0 votes
0 answers
533 views

How to stream local audio to HTTP

How can I set up a HTTP audio streaming server that I can access on http://localhost:8080 without specialized software or configuration on the local side? (the remote side, which streams the audio, ...
0 votes
1 answer
192 views

what should be the format of http logs of a proxy?

In this specific case I am using fabio and nginx and apache http proxy that just proxies requests to destinations. Both the "Combined Log Format" and "Common Log Format" do not ...
5 votes
5 answers
23k views

wget is returning an html page instead of original file

In my case the problem is with SourceForge.net. Actually I was trying to download these files: http://sourceforge.net/projects/wxpython/files/wxPython/2.9.4.0/wxPython-src-2.9.4.0.tar.bz2/download ...
0 votes
1 answer
46 views

Http outperformed Http2 ,why, please help me to figure out?

I'm currently conducting performance testing on my NGINX web server container and I'm encountering some unexpected results. My tests show that HTTP performance is outperforming HTTP/2, despite SSL and ...
1 vote
1 answer
1k views

UEFI HTTP Boot clarity?

I'm interested in learning more about UEFI HTTPBoot and setting it up for my LAN as a netboot option, but the details are notably sparse. The best docs I've found are Suse Docs for configuring an HTTP ...
0 votes
1 answer
2k views

A simple command-line utility to show HTTP request/responses on a specific port

I have a simple API that listens on http://localhost:5000 and I have the Nginx as a reverse proxy that listens on https://example.com. I have configured Nginx to send headers to my API: location / ...
1 vote
1 answer
3k views

Why is HAProxy forwarding HTTP2 requests as HTTP 1.1?

I'm trying to configure a load balancer between 2 servers with HAPoxy, this is my configuration: frontend haproxynode bind *:443 ssl crt /etc/ssl/private/isel.pem alpn h2,http/1.1 mode tcp ...
1 vote
2 answers
877 views

UEFI HTTP boot only: GRUB2 used a mysterious HTTP agent "UefiHttpBoot/1.0" to load initrd and failed to completely read large initrd

I was using GRUB for UEFI PXE boot or UEFI HTTP boot of a Linux Live OS (made by Ubuntu Focal or Bionic or Jammy). I used the same grub.cfg for both methods. It worked well under UEFI PXE boot, but ...
0 votes
1 answer
2k views

HTTP version for CURL command on server and docker image

When I'm doing a CURL call curl https://example.com from a docker container, I got the error curl: (92) HTTP/2 stream 0 was not closed cleanly: HTTP_1_1_REQUIRED (err 13). But when I'm running the ...
0 votes
0 answers
288 views

Unable to parse HTTP packet using netfilter hooks in kernel module

I am trying to parse HTTP packets using netfilter hooks in my kernel module. I came across this code snippet on How to print data from TCP packets which I modified to make it build. However, I am ...
0 votes
1 answer
399 views

How does it works the "HTTP 101 Protocols Switching" in a client server communication?

I'm developing a web site that is served by the web server NGINX installed on a Linux platform. One of the service provided by the web site is base on a WebSocket backend server. To be more specific ...
2 votes
2 answers
2k views

One line HTTP Proxy command?

Is there a simple, one-line command to run a HTTP Proxy? There are several one-line commands “serve this directory over HTTP” (e.g. python -m SimpleHTTPServer). Is there any command, or one-liner, for ...
1 vote
1 answer
12k views

Lots of TIME_WAIT in netstat on apache server

What would be the reason for many TIME_WAIT here? Even we have very few ESTABLISHED, SYN connection. [root@www ~]# netstat -natp | grep "210.XX.XX.XX:80" | awk '{print $6}' | sort | uniq -c 1 ...
1 vote
1 answer
2k views

How to log all domains accessed?

Maybe I could use tcpdump, filter out all non-HTTP packets to reduce disk consumption, and then parse the output looking for domain names. Maybe there is a better solution. Do you know one?
-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 ...
2 votes
0 answers
445 views

How do you fetch a large file over http in parallel?

Question: Since HTTP supports resuming at an offset, are there any tools (or existing options for commands like wget or curl) that will launch multiple threads to fetch the file in parallel with ...
2 votes
1 answer
842 views

Some secret service is taking over port 80... I can't identify which one?

I have an nginx service that resides on ports 80 and 443 and has done som for years. Yesterday I suddenly just got a plain text page with a 404 page not found message Headers: HTTP/2 404 content-type: ...
0 votes
0 answers
293 views

Error Trying to load http url using curl

I am beginner. I am trying to load HTTP URL using curl in my Ubuntu terminal. The command I am using is curl -L 'http://google.com' But instead of getting source code. I am getting below error curl: ...
13 votes
3 answers
15k views

How to get http server response in case of 401 using wget?

I need to test my http server responses in various cases, even for failed authentication. In case of failed authentication, my server returns 401 Unauthorized and also a response body which simple ...
1 vote
0 answers
89 views

apache2 crit error file util_ldap.c, line 85, assertion "0" failed

I have simple webservice with one index.html file with hello world And I'm trying to make this website accessible only with LDAP authentication, but when I trying to access website errors start occur....
0 votes
2 answers
109 views

why iptables commands yield seemingly contradictory results on my embeded Linux?

I'm running an Embedded Linux system, whose kernel is 3.18.21, with some applications on top it on MIPS. When I run iptables & ip6tables on the Linux, such as the following: iptables -A INPUT -p ...
0 votes
0 answers
490 views

How to redirect all http traffic to Burp Suite?

How to redirect all HTTP requests to Burb Suite? I am using a Ubuntu OS running on VM installed on my macOS machine, and I have tried the following IPTables commands to do that, without success: sudo ...
1 vote
1 answer
9k views

Curl returning with no response and does not wait for `wait=x seconds`

I call an async service that takes ~80 seconds to respond. I run: curl -v -X POST https://hostname.com/service/v2/predict \ -H 'x-api-key: somekey' \ -H 'x-request-id: longfiles' \ -H "...
0 votes
0 answers
232 views

since when CentOS has a welcome page with the default http server

On my network, I have many CentOS VMs with various versions dating from very recently to 10-15 years ago. For some of them I don't have credentials but I want to check if I should keep them by the ...
1 vote
0 answers
54 views

Has the target of a HTTP CONNECT tunnel to be reachable from both client and proxy?

I am trying to tunnel ssh via HTTP. My apache virtual host config looks as follows: <VirtualHost *:443> ServerName proxy.example.org ProxyRequests On AllowCONNECT 22 <Proxy *&...
0 votes
1 answer
140 views

How to define HTTP_PROXY uppercase as http_proxy lowercase in macos?

How to define HTTP_PROXY uppercase as http_proxy lowercase in macos? Is there a way to set HTTP_PROXY to work similarly as http_proxy?
1 vote
0 answers
1k views

Upload file to SFTP directly from HTTP using cURL

I am struggling with uploading a file to an SFTP from a URL. All steps work independently but when I combine them they seem to be split into two separate tasks, downloading the file and then ...
0 votes
1 answer
1k views

How do I ssh into a server over HTTPs?

I have a server that has a reverse proxy (NGINX) set up to host all my other websites/services on a single server. I would like to create a way to SSH into that server over HTTP. The reason I need to ...
0 votes
1 answer
1k views

Intercept and edit http requests on the fly

Is there a tool that'll let me programatically inspect and edit http requests being emitted from my box on the fly? I'm hoping to create the ability to access mirrors of commonly downloaded files when ...
44 votes
5 answers
35k 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
2 3 4 5
7