Questions tagged [http]

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

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

Can an open port be hacked to get access to the command line?

Assume I run a custom app on an arbitrary port on a linux box - let's say 7890. This is a go language web server. Runs an app on top of HTTP. No HTTPS. It runs as a dedicated but "normal" ...
0
votes
0answers
20 views

Http git Repo Authentication

<VirtualHost *:80> SetEnv GIT_PROJECT_ROOT /var/www/git SetEnv GIT_HTTP_EXPORT_ALL DocumentRoot /var/www/git ScriptAlias / /usr/libexec/git-core/git-http-backend/ <Directory "/usr/...
1
vote
1answer
29 views

How do I serve *nothing* on a server's bare IP with Apache2 virtual hosts?

I am hosting several project sites on a machine running Apache. Of course I am using virtual hosts and they work as expected. However, currently accessing the bare IP of the machine yields the first ...
0
votes
1answer
14 views

nginx re-direct to API server in EC2

I have an EC2 server (in Private subnet) from where I run some Python microservice. From my application running on an Apps EC2 (in public subnet) I am trying to access the Python microservices. I ...
0
votes
1answer
18 views

Ubuntu sudo required for listening on port 80 but not on other unused ports

On my Ubuntu desktop, I'm able to successfully run a small C++ webserver on unused ports like this: ./myserver 127.0.0.1 3050 This problem is that if I run on port 80, I must run as sudo like this: ...
0
votes
0answers
28 views

grub2: specify http location for linux and initrd in grub.cfg

I am trying to configure network boot to install different Linux OS versions on PowerPC environment. I have an CentOS source machine with httpd, dhcpd and tftp configured. My http server is hosting ...
0
votes
0answers
29 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
1answer
64 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 ...
0
votes
1answer
83 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....
0
votes
0answers
50 views

website STILL need to redirect from HTTP to https after Nginx redirect config

I use AWS EC2 to build a website using load balancer. However, the pentesting result shows that the website still could be reached by http. I have checked that in the Nginx config file, we does have a ...
0
votes
2answers
38 views

New iptables NAT produces Error 400 Bad Request for Other HTTP Requests

All: Recently, I added several new iptables (RE: code snippet below) rules to route traffic through my VPN (0x1000/0x1000) for a specific destination (172.67.168.48) over port 443. The new rules NAT ...
0
votes
0answers
725 views

Centos 8 apache kerberos authentication sso

For some reason I am unable to authenticate via sso to internal website when you connect it directly via cname. Centos linux is joined in the domain itself. What happens is that when I enter the ...
0
votes
0answers
919 views

HTTP request sent, awaiting response… 400 Bad Request on using wget for downloading dropbox files in CentOS

The file is around 447MB. I cannot download it using the following command in CentOS. How can I download https://www.dropbox.com/sh/6yd1ygtyc3yd981/AABVeEqzC08YQv4UZk7lNHvya?dl=0&preview=CIFAR-FS....
0
votes
1answer
162 views

lighttpd won't start even with the right permissions

systemctl status lighttpd ● lighttpd.service - Lightning Fast Webserver With Light System Requirements Loaded: loaded (/usr/lib/systemd/system/lighttpd.service; enabled; vendor preset: disabled) ...
0
votes
1answer
259 views

wget not downloading files with 304 Not Modified

I'm trying to download a website recursively using wget: wget --recursive --page-requisites --no-parent --convert-links -e robots=off --domains orteil.dashnet.org orteil.dashnet.org/cookieclicker It ...
0
votes
0answers
18 views

How does kernel handle previous incoming data packets after a timeout has occurred

During a TCP request hand-shake a socket at both the end of the request is created i.e. the sender creates it during the SYN and receiver creates it on ACK. This is required for connection ...
0
votes
1answer
225 views

Downloading file on Linux shell from an interactive http site using curl wget

I am trying to download a file form a HTTP website from my Linux shell using wget and curl. Below is the manual GUI process of doing it: Once I click on the Link-A, it redirects me to a different ...
1
vote
1answer
573 views

How to run Python 3 http.server on port 80 without root?

I want to run Python 3 http.server on port 80, without running it as root and without installing any extra software (e.g., authbind). I'm using Arch Linux. I would prefer to do this with systemd and ...
2
votes
0answers
220 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 ...
0
votes
1answer
575 views

What means the RET=$? in the previous reply?

In this thread : https://superuser.com/questions/569092/how-to-split-the-http-error-code-from-the-contents-in-curl What means this part: if [[ $RET -ne 0 ]] ; then # if error exit code, print ...
1
vote
1answer
105 views

How does one copy parts of a repository to Artifactory?

I'm trying to copy the x86_64 parts of the CentOS 8 repository from http://mirror.centos.org/centos/8/ directly to Artifactory. I've successfully copied some functions (BaseOS, extras, etc) into the ...
1
vote
1answer
93 views

how to restart a buggy HTTP service - for continuous testing and integration

This question is perhaps related to the one I am asking here. This is in the context of https://github.com/bstarynk/helpcovid/ (a GPLv3+ software for Linux, currently -april 2020- in active ...
4
votes
1answer
727 views

Display webpage with unix domain socket

Is there a way to serve a webpage from a locally running tcp server listening on a unix domain socket instead of localhost:<port>? something like: file:///tmp/webpage.sock my only real ...
0
votes
1answer
38 views

Why am I getting this 400 bad request?

I'm maintaining an old app in C++ that goes a http get request. However, the apache2 gives me a 400 error Error log [22/Mar/2020:20:04:33 +0000] "GET /hover/imr.php?=ADD_GAME%%16-0%%%43%6c%61%73%...
6
votes
1answer
7k 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
1answer
114 views

Clarifications for SSH tunnels over HTTP (or HTTPS)

I noticed that when I create a tunnel locally from my PC to the remote one, for some devices (generally routers), the connection via http or https does not take place. I get a pop-up that says: The '...
0
votes
0answers
46 views

Apache configuration 2.4

I need to perform the following configuration on my Apache server, version 2.4, with CentOS 7 system. The instructions I received are as follows: Configuring Another Web Server to Serve the Files ...
0
votes
0answers
50 views

curl is stuck when trying to get NameNodeStatus

we have two namenode in the cluster hadoop cluster this is good example of one of the name node that return good status first namenode machine IP - 92.3.44.2 curl -v http://92.3.44.2:50070/jmx?qry=...
0
votes
1answer
2k views

What are -b and -c options for cURL?

When using cURL, what are -b and -c options? On man curl, there are these descriptions, but it's confusing for me. When they say "-c, --cookie-jar", "-b, --cookie", does it mean that we have to use ...
0
votes
2answers
201 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 &...
2
votes
1answer
142 views

How to make an HTTP request from raw data?

I have some HTTP requests in raw format such as GET /docs/index.html HTTP/1.1 Host: www.nowhere123.com Accept: image/gif, image/jpeg, */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-...
0
votes
1answer
67 views

Is TLS-level compression with Apache possible?

Apache2 can transfer compressed data by using the deflate filter. However, it does a HTTP-level compression: it sends back a compressed response, and it shows in the response headers to the clients to ...
0
votes
1answer
33 views

Are these different telnet commands?

What does these both commands do? telnet www.abc.ac.in 80 vs telnet www.abc.ac.in http
4
votes
2answers
179 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: ...
1
vote
0answers
32 views

How to gather stats of accessed file, true http

I have a simple file/web server. On that server I have files which are accessed by myself and others, using a URL. It is on Ubuntu 14.4 server with nginx. I want to know how many times a file was ...
1
vote
0answers
40 views

Restricting HTTP requests for users

Is it possible to restrict a users upload on a desktop linux machine (debian) so the user can only do HTTP requests with max X amount of bytes? It would be to prevent the user to upload any type of ...
0
votes
1answer
248 views

How can I extract status code digits from curl?

I am writing a plugin and I want to extract a status code from my curl request: curl -I localhost | grep HTTP; Right now I have % Total % Received % Xferd Average Speed Time Time Time ...
1
vote
0answers
180 views

How to chain two proxies, or: How to redirect network traffic from one process, to a local proxy

Here's the scenario: I have a proxy, that when Chrome is setup to map requests to, records the requests from Chrome + the responses from the real server. It records all of this in a special format, so ...
0
votes
1answer
332 views

How to enable HTTP/3 support in Linux? [closed]

Are there some stable open-source libraries need to install?
0
votes
1answer
165 views

Monitor incoming traffic on ports 80 & 443, vanilla VPS, recycled IP address

On a newly-created Debian (or derivative) server operating system, how can I a) check for the existence of, b) roughly quantify, and c) see the origin of any junk/DoS traffic on ports 80 and 443, ...
1
vote
0answers
17 views

Nginx, Let's encrypt cause error redirect http to https partially

I am using CentOS 7, Let's encrypt (want to clear all thing related 002.bkit.vn), Nginx. I try to install Let's encrypt for 002.bkit.vn , then I remove it, some things still exist, but I don't know ...
0
votes
1answer
34 views

Stop http service, yum still work CentOS7

Can anyone explain me why yum still working when I stop http service. If I'm not wrong, yum repository use port 80 and 443 so stop http service on the machine should technicly stop possibility to ...
0
votes
2answers
6k views

How to send a file for single POST parameter with CURL?

I want to send myfile.json for one POST parameter while specifying explicit value for another parameter with CURL. Is it possible? Something like POST a=value1&b=<load and encode from my file....
1
vote
2answers
64 views

Howto find the size of a remote http/https directory (non recursively) using a given regexp from the command line

I'm trying to find the size of a remote http/https directory (non recursively) using a given regexp (\.mp4) from the command line, is there a tool to do so or do I need to parse the index.html ? ...
1
vote
1answer
151 views

How to fix syntax error for [not allowed here]?

I have set 2 headers below for converting SAML values returning from Siteminder to HTTP header. MellonSetEnvNoPrefix YYY_ID yyy MellonSetEnvNoPrefix XXX_ROLE xxx I got the error below after starting ...
1
vote
1answer
228 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 ...
-2
votes
1answer
5k views

How to send binary file URL in the curl command instead passing local path

I am trying to post a binary .apk file which is on s3 bucket to a POST API. Local way which I know is: curl -X POST https://xxx.example.com:443/api/storage/upload -H "Content-Type:application/octet-...
0
votes
1answer
422 views

running curl with sudo results in a status code 301 (Moved Permanently)

i have a test server running on port 3062, i want to send it HTTP POST data using curl when i run the following command : curl -d '{"k1":"v1","k2","v2"}' -X POST http://localhost:3062 it works fine ...
0
votes
0answers
2k views

`svn checkout` over HTTP gives error E000104 but `svn ls` works

I am unable to svn checkout a repository (served over HTTP) from work but I can from home. I am, however, able to svn list as well as view the repository in a web browser when at work. This is the ...
1
vote
0answers
736 views

GET via wget or cURL gives a limited response

I'm bumping my head on a simple HTTP GET request. Using a tool like Postman, I'm getting the full and expected response (an over 1 thousand lines xml document, displaying the details of my 60 albums) ...

1
2 3 4 5 6