Questions tagged [http]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
55 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 <some.file)\r\...
0
votes
1answer
34 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
29 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 ...
-3
votes
0answers
13 views

create local mirror for multi repositories

how to get/download centos,ubuntu,proxmox etc repositories and use it in one local (mirror) server like Leaseweb?
0
votes
1answer
29 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
0
votes
0answers
13 views

Is it possible that a reverse proxy upgrades a http/1.1 connection to http2?

Not really sure whether is possible or not, but if you have a reverse proxy for HTTP/1.1 connections, would it be possible to ugprade said connections to HTTP/2, if the destination is capable of ...
4
votes
2answers
117 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
28 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
21 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
45 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
90 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
85 views

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

Are there some stable open-source libraries need to install?
0
votes
1answer
40 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
32 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
1k 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
55 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
84 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
79 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
1k 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
255 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
523 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 ...
0
votes
0answers
15 views

Concurrent requests from node.js process are far too slow - is the OS limiting them

I have a node.js script, it makes a http request to a url N number of times using two different techniques. First it does it serially, then it does it using the node.js Promise api (all the requests ...
1
vote
0answers
434 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) ...
-7
votes
1answer
846 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
3k 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 ...
-3
votes
1answer
565 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
37 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
457 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
918 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
27 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
94 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
68 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 ...
0
votes
2answers
1k views

How to redirect website in restricted network through ssh tunnel

I have established a reverse ssh tunnel into a restricted network to an aws server, i.e. to access it, I ssh into the aws server and from there I get access to the machine in the restricted network on ...
1
vote
1answer
904 views

yum install fails with 401 Authorization required [closed]

I am running Red Hat Linux 6.2 Trying to install nfs packages using yum Following is the repository list repo id repo name ...
2
votes
0answers
145 views

libcurl post request from debian 7 to debian 9 gnutls handshake error

I have a problem with libcurl returning an SSL error, let me describe the situation: There are two machines with Debian, the client is Debian 7 and the server is Debian 9, the client uses libcurl to ...
1
vote
1answer
51 views

How to avoid forwarding ports?

I am doing UDP socket programming in C. In order to listen to a port, I need to forward ports in my router. My question is how to avoid doing that and still being able to communicate over the internet,...
5
votes
1answer
4k views

Wget: downloading files selectively and recursively?

Question about wget, subfolder, and index.html. Let's say I am inside "travels/" folder and this is in "website.com": "website.com/travels/". Folder "travels/" contains a lot of files and other (sub)...
0
votes
1answer
129 views

Strict-Transport Header HSTS

I need to configure the HSTS (HTTP Strict-Transport Header) in Linux. I have added the following on the Tomcat/Conf Web.xml file: httpHeaderSecurity org.apache.catalina.filters....
0
votes
1answer
68 views

Redirect output without telnet information to file

I am trying to download a binary file from an HTTP server with GNU Telnet, a tar archive to be exact. I can currently download regular files, but I can't properly redirect the output to a file. The ...
0
votes
1answer
22 views

HTTP client saving download metadata

I am looking for a way to download files from the Web, while saving download metadata, like the requested URI, the returned status code and maybe even TLS certificate information (server certificate ...
0
votes
1answer
1k views

Unable to use curl with cookie-jar

I am trying to use curl for login request automation. Here, use of cookie-jar is must. When I use --cooki-jar cjar option, it shows following error. root@kali:~# curl --cookie-jar cjar --output /root/...
2
votes
1answer
70 views

How to make Apache ErrorDocuments unreachable by normal http requests?

The Apache documentation explains, how can we set up custom error pages for different HTTP errors, identified by their status code (401, 403, 404, 500, 503 and so on). However, what this document ...
0
votes
1answer
46 views

Script for passing traffic

I'm trying to write a script to test our proxy servers to see if they're passing traffic. I wrote this code below to implement "httpie" tool but still having issues. Can someone please take a look ...
0
votes
1answer
34 views

Non-logging REST API: How can I write all HTTP(s) requests and responses to a file?

I have a daemon, call it whatverd, running on TCP port 11111. It is basically an http server, but it does not do any kind of logging or debugging. It only returns query results via JSON in the http(s) ...
-1
votes
1answer
330 views

SSH HTTP tunnel not working

I'm trying to learn how to use SSH tunnels. For this, I took two VPS. I want to forward http traffic from vps-1 through vps-2. I tried to configurate tunnels by ssh -L 80:127.0.0.1:80 ramirag@95.216....
1
vote
2answers
29 views

What is the easiest way to set up a HTTP request logger

What is the easiest way to set up something locally to listen for GET requests on a custom port? So that I could do curl -X GET -i 'localhost:34331/hello' And verify that the request was received ...
0
votes
1answer
47 views

Are there any tools to monitor network requests at very low-level?

I would like to monitor the web/ftp requests made by Zypper when we install a package. But none of the suggested network monitoring tools seem to identify the requests made by Zypper. So far, I've ...
1
vote
1answer
601 views

connect to server with netcat and receive *multiple* files with one request/connection

Say I have an http or tcp server running, which serves tarballs (.tgz files). Is there some way I can receive files individually so I can do something like this: nc localhost 5000 | how can I read ...
0
votes
1answer
27 views

Viewing content of http body from apache2 logging

so I am sending custom http post/get/put requests to my apache2 server and I would like to log exactly what is received by the server. So far I am using ForensicLog module and that allows me to see ...