Questions tagged [http]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
31 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
41 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
39 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
29 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
40 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
15 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
39 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
70 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 ...
1
vote
0answers
53 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
112 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 ...
0
votes
1answer
33 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
85 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 ...
0
votes
0answers
60 views

UEFI - HTTP boot

I have been trying to setup HTTP boot. I have got to the stage where the client can boot the core.efi image but I get errors saying: URL: http://192.168.0.11/boot/grub/x86_64-efi/core.efi Error: ...
3
votes
1answer
237 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
23 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%...
1
vote
0answers
3k 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
45 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
43 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
40 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
870 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
135 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 &...
1
vote
1answer
53 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
40 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
31 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
144 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
30 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
35 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
172 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
161 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
174 views

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

Are there some stable open-source libraries need to install?
0
votes
1answer
92 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
15 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
33 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
5k 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
62 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
137 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
169 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
4k 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
347 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
1k 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
676 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) ...
-6
votes
1answer
2k views

Does HTTP `TRACE` method do the same thing as `curl --trace`?

Does HTTP TRACE method do the same thing as curl --trace? Stephen said at Does `curl -v` show the complete HTTP request including the body?: the TRACE HTTP method affects the server’s behaviour, ...
0
votes
1answer
7k views

What HTTP request and response headers do `curl --cert` and `curl --cacert` read and write?

From https://curl.haxx.se/docs/httpscripting.html In the HTTPS world, you use certificates to validate that you are the one you claim to be, as an addition to normal passwords. Curl supports ...
0
votes
1answer
2k views

What is the purpose of “use curl --cookie with a file that doesn't exist”?

From https://curl.haxx.se/docs/httpscripting.html Curl's "cookie engine" gets enabled when you use the --cookie option. If you only want curl to understand received cookies, use --cookie with a ...
0
votes
1answer
132 views

Wireshark not showing HTTP queries

I am trying to using Wireshark, but when I set filter into http Wireshark not displaying any data. Unfortunately, I can see only tcp/dhcp/arp protocols, but not http: My Wireshark preferences: I ...
0
votes
1answer
991 views

Get HTTP header response with telnet in shell script using a proxy

I need to get the http header response from a server (google) with telnet, as i don't have curl or wget in my busybox environment. Also, I'm behind a proxy. So on the command line I can successfully ...
2
votes
1answer
2k views

Capture http token with tcpdump

My server runs curl commands to some API using a token. For example: curl --header "Private-Token: aaaaaaaaaaaaaa" http://mysite.example.com/api/v4/any Can i capture with tcpdump all of the requests ...
0
votes
1answer
36 views

UFW deny specific port access over HTTPS?

We're running a dev server on some IP and have our API exposed on port 5000 and nginx listening on 80. However, the entire backend will crash when one makes an HTTPS request to port 5000. Thus, I ...
-1
votes
1answer
306 views

Accessing a linux file content through an url

I want to access a Linux file content through an url. When we access the url we can see the content of that file being displayed in the screen. Is there any procedure to do this.
0
votes
1answer
100 views

Different page from a browser and wget [closed]

EDITED TO REMOVE OBSOLETE EXAMPLES I have a very curious case that has dumbfounded me. I was trying to get a certificate from letsencrypt and I was consistently getting errors that certbot is unable ...

1
2 3 4 5 6