Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [http]

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

0
votes
0answers
20 views

Changing filepath of outgoing request

I'm trying to look for a workaround with a problem with the latest FFXIV update. The launcher tries to access https://frontier.ffxiv.com/version_4_0_win/version_4_0_win/index.html when it should be ...
-1
votes
0answers
27 views

Video LAN Client over The Onion Router (VLC over TOR)

VLC over TOR VLC does have proxy settings, but dose not work anymore. In a older VLC version it works. I already streamed over TOR with VLC. torrc (TOR configuration file) SOCKSPort 127.0.0.1:9050 ...
-1
votes
0answers
3 views

HTTP load generators with request number counter

I'm looking for an HTTP load generators like ab, wrk that sends the current counter of the load test (i.e. "2416th request") to the server (through an header or query parameter). Does a load ...
1
vote
1answer
31 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
58 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
88 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
55 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
90 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
8 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
81 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) ...
-8
votes
1answer
84 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
291 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
49 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 ...
1
vote
0answers
29 views

getting issue when I try to connect with NASL localhost [closed]

when I'm trying to connect with NASL using telnet, the connection is getting closed. here is the command and the response which I got. ubuntu-64-sumit@ubuntu-64-sumit:~$ telnet 192.168.20.8 80 Trying ...
0
votes
1answer
31 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
176 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
193 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
23 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
28 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
52 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
394 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
269 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
90 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
27 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,...
4
votes
1answer
2k 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
60 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
34 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
0answers
16 views

Citrix Receiver: HTTP.REQ

In netscaler, we can set the policy expression HTTP.REQ.User-Agent to a string. If request came from Citrix Receiver with this field as given string, then netscaler allows a connection. I would like ...
0
votes
1answer
16 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
508 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/...
0
votes
0answers
27 views

What is the fastest tool to sync http listening files

I have a huge number of files (text files) listening on http server. I am using cron-job to download these files as the number of files will grow dramatically. I am using wget as follows to download ...
2
votes
1answer
56 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
35 views

Help with 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
27 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
224 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
23 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
43 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
417 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
0answers
37 views

Very slow HTTP requests over time on embedded Linux

An application I'm developing is gradually getting slower and slower to run HTTP/HTTPS requests over time. It's running on Buildroot embdded Linux on some quite old and slow hardware. After a few ...
0
votes
1answer
26 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 ...
2
votes
3answers
3k views

Why isn't Android's Captive Portal detection triggering a browser window?

I have a Raspberry Pi that is hosting a simple website using nginx. The RPi is acting as a Wireless Access Point - users can connect to its wireless network, the RPi gives them an IP (it runs a DHCP ...
0
votes
1answer
95 views

iptables HTTP ratelimit exclusion with --string Debian 8

I am trying to limit HTTP requests to maximum 20 requests/second if more than that reject but i want to exclusion requests to (.png,.js,.css) files from this rule, I used the following code iptables -...
0
votes
1answer
675 views

Can't get 200 OK when checking URL?

I was trying to follow this tutorial: https://www.shellhacks.com/check-website-availability-linux-command-line/ When using the curl -Is http://www.shellhacks.com | head -1command, I am unable to get ...
1
vote
0answers
272 views

Supplying curl with multiple options that require <file or input>

I'm trying to execute a curl command from the terminal. I need to provide HTTP authentication I need to POST a .jar file This works when HTTP authentication is disabled: curl --data-binary @~/file....
2
votes
0answers
196 views

tcpdump packets length mismatch

I'm trying to find out why my application has a huge network traffic, particularly, the outbound traffic. Researching the issue, I found a number such packets where length mismatches the difference ...
27
votes
7answers
9k views

Download big file over bad connection

Is there an existing tool, which can be used to download big files over a bad connection? I have to regularly download a relatively small file: 300 MB, but the slow (80-120 KBytes/sec) TCP connection ...
0
votes
1answer
74 views

add a header to incoming http request in a server

I have a ubuntu 16.04 server. It runs nginx webserver for the frontend part. Also the backend application runs in the same server. Now the requirement is to add header to incoming http requests. And ...
10
votes
2answers
617 views

How can I use files from HTTP as prerequisites in GNU make?

I want to use files from the World Wide Web as prerequisites in my makefiles: local.dat: http://example.org/example.gz curl -s $< | gzip -d | transmogrify >$@ I only want to "transmogrify" ...
0
votes
1answer
53 views

HTTP status code for deprecated URL [closed]

I'd like to migrate a URL to a new URL. Because I want to do it properly, I'm thinking of using the 301 status code plus the new URL in the headers. However, I also plan to disable the old URL ...
1
vote
2answers
1k views

Why haproxy logs status code 200 when using “http-response set-status <not-200>”?

I am using haproxy 1.7.8. I have a config that blocks requests with some specific abusers domains in HTTP Referer header. Important parts of my haproxy config looks like this: frontend ...