Questions tagged [http]

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

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

how to make sure the proxy works or not in macOS iterm

Now I am set the proxy in .zshrc like this: alias proxy='export all_proxy=socks5://127.0.0.1:7890' and check using the env command in terminal, shows the proxy env value like this: all_proxy=socks5://...
user avatar
  • 351
0 votes
0 answers
28 views

BAD REQUEST when using iptables for a captive portal on raspberry pi

I have my raspberry pi setup as a wireless access point by following the documentation on the official site https://www.raspberrypi.com/documentation/computers/configuration.html#setting-up-a-routed-...
user avatar
0 votes
1 answer
19 views

How do I set up my raspberry pi so that I can connect to its ip address via a domain

Let me explain what I want to happen. I have an http server program that displays a website every time I connect to my raspberry pi's ip address on port 8080. But this only works on my current network....
user avatar
  • 25
0 votes
0 answers
37 views

firewalld not blocking http and https access

I am running a httpd container on this machine, but http or https aren't enabled on firewalld. But I can still access the website from another machine that is on the same network. Why is this behavior?...
user avatar
-1 votes
1 answer
203 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=...
user avatar
0 votes
1 answer
24 views

Server responses with IP Address instead of host name

I have a Backend which is used as a REST API. When I make a request to the server (GET https://subdomain.server.com/users/all) I get this response from the server: GET https://87.69.152.36/users/all ...
user avatar
  • 1
0 votes
0 answers
34 views

why could access url using curl but faild in the google chrome broswer

I am config the localhost url in the nginx on macOS like this: ➜ nginx git:(master) cat conf.d/reddwarf-admin.conf server { listen 8083; server_name admin.reddwarf.com; ...
user avatar
  • 351
0 votes
0 answers
20 views

VoIP without HTTP?

I want to be able to make phone calls to ordinary telephone phone numbers from my (Unix/Linux) laptop without using a web browser (or other proprietary software such as "Skype for Desktop"). ...
user avatar
0 votes
1 answer
44 views

Streaming audio files over HTTP with Media Player Daemon fails - 'Not found'

I'm trying to set up a simple MPD instance to stream audio files over HTTP. What I'd like to be able to do is put in a URL in my browser, which will stream the audio file - as simple as possible. I've ...
user avatar
  • 1
0 votes
0 answers
26 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 ...
user avatar
0 votes
1 answer
31 views

How to obtain data from a site that uses javascript?

What I want is to query metallum to obtain a plain list of songs that contain x word, let's say spider, so the query for the browser would be https://www.metal-archives.com/search?searchString=spider&...
user avatar
  • 21
0 votes
1 answer
293 views

Open URL as if with browser from command line

I am having roughly the same problem as in this question, where the problem is, there is a certain URL that, when called in the browser, will download a file, but when called from the command line ...
user avatar
  • 121
0 votes
1 answer
683 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 ...
user avatar
0 votes
0 answers
27 views

Sniffing traffic at embedded linux

Are there any sniffers out there? I'm looking for something that can be compiled for an embedded device. Important: I'm not limited in space. Therefore it can be any-size sniffer that can be compiled ...
user avatar
0 votes
0 answers
66 views

How to cancel a curl request in shell script

I am testing some cancellationTokens I implemented for an endpoint. I have a script that hits the endpoint 50 times. After each of the requests I would like to cancel that request. for i in $(eval ...
user avatar
  • 101
1 vote
0 answers
633 views

How to use curl to access a webpage behind a login form?

There is this webpage I'm trying to scrape but it is behind a login form that needs user/password. I used Firefox debug mode to find HTTP requests. Upon entering the credentials, there is a POST ...
user avatar
-1 votes
1 answer
57 views

Why can't http be changed to https in ubuntu?

Why can't http be changed to https in ubuntu? Err:1 https://ports.ubuntu.com/ubuntu-ports focal InRelease Could not connect to ports.ubuntu.com:443 (91.189.91.38). - connect (111: Connection refused)...
user avatar
0 votes
0 answers
26 views

Command line http analyzer

I would like to learn more about http(s) requests. Learning requires doing, not just reading. I tried inspecting tcpdump output when loading a simple page but the packets are too low-level and I am ...
user avatar
  • 2,643
1 vote
1 answer
41 views

Website served on port 80 unreachable from my phone in the local subnet

I'm building a website on my laptop. To see how it renders, I serve it locally on port 80 with lighttpd. I can then open it in my laptop's browser via any IP or URL referring to the laptop http://...
user avatar
  • 1,463
0 votes
0 answers
43 views

Is it real to redirect http request like this?

e.g. Main server runs nginx and checks http request hostname. If hostname matches exampleX.com - redirects to needed local server with its own nginx on board. Local server returns page content. Is it ...
user avatar
0 votes
0 answers
200 views

Compiling curl with http3 - stuck on step with ngtcp2

I'm trying to compile curl with the experimental http3/quic stack. I've read and followed cookbook examples in a couple of places (most specifically here(https://github.com/curl/curl/blob/master/docs/...
user avatar
1 vote
1 answer
1k 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, ...
user avatar
1 vote
1 answer
293 views

PHP shell_exec() Command not found

I need to execute a program using php, the file in question is ClustalW (clustalw2). My apache user is http using fish shell, so I moved clustalw2 to /srv/http/Clustal and added the dir to fish path. ...
user avatar
-1 votes
1 answer
49 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" ...
user avatar
1 vote
1 answer
101 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 ...
user avatar
0 votes
1 answer
23 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 ...
user avatar
0 votes
1 answer
94 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: ...
user avatar
0 votes
0 answers
78 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 ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
0 votes
1 answer
287 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....
user avatar
0 votes
0 answers
55 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 ...
user avatar
  • 1
0 votes
2 answers
51 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 ...
user avatar
0 votes
0 answers
1k 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 ...
user avatar
  • 1
0 votes
0 answers
2k 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....
user avatar
0 votes
1 answer
459 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) ...
user avatar
  • 1,672
0 votes
1 answer
995 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 ...
user avatar
  • 173
0 votes
1 answer
812 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 ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
  • 15.4k
2 votes
0 answers
545 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 ...
user avatar
  • 1,049
-1 votes
1 answer
2k 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 ...
user avatar
1 vote
1 answer
216 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 ...
user avatar
  • 157
1 vote
1 answer
109 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 ...
user avatar
6 votes
1 answer
2k 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 ...
user avatar
0 votes
1 answer
113 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%...
user avatar
  • 1
10 votes
2 answers
14k 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 ...
user avatar
  • 113
0 votes
1 answer
336 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 '...
user avatar
0 votes
0 answers
49 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 ...
user avatar
0 votes
0 answers
203 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=...
user avatar
  • 10.9k
0 votes
1 answer
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 ...
user avatar
0 votes
2 answers
390 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 &...
user avatar
  • 89.8k

1
2 3 4 5 6