Questions tagged [http]

HTTP stands for Hyper Text Transfer Protocol and is the protocol used to transfer information around the World Wide Web.

Filter by
Sorted by
Tagged with
0 votes
0 answers
653 views

Downloading large excel file in angular using xlsx library(net::ERR_INCOMPLETE_CHUNKED_ENCODING 200)

I am doing an excel file download using angular + springboot and the api returns application/json file. The transfer-encoding:chunked is always enabled and i see responses return http 1.1 . I posted ...
9 votes
3 answers
3k views

Apache DirectorySlash redirects HTTPS requests back to HTTP

User Request: https://www.example.com/test HTTPS requests --> AWS ELB HTTPS Listener --> Apache HTTP Apache getting http://www.example.com/test Apache redirect it to http://www.example.com/...
0 votes
1 answer
1k views

Trouble with port 80 nating (XenServer to WebServer VM)

I have a rent server running XenServer 6.2 I only have 1 public IP so i did some NAT to redirect ports 22 and 80 to my WebServer VM. I have a problem with the port 80 redirection. When i use this ...
2 votes
1 answer
449 views

Lighttpd - Redirect HTTPS 443 to HTTPS 123

I have HTTPS working for a local instance of Lighttpd. But I'm wanting to redirect: http://192.168.1.254 -> https://192.168.1.254:123 https://192.168.1.254 -> https://192.168.1.254:123 My ...
1 vote
1 answer
2k views

What happens to existing HTTP and Websocket connections when the NGINX configuration reloads?

Let’s say we have a pretty standard blue/green deployment setup. NGINX is currently proxying all traffic to the live server (BLUE). We then deploy an updated version of our code to the idle server (...
0 votes
0 answers
1k views

Nginx server response time is unexpectedly high for one in hundreds of requests

I'm using Nginx to serve .ts files for live streaming (HLS). Everything works fine but there is a problem with the response time of the files. Occasionally, some .ts files received from the server ...
3 votes
4 answers
1k views

Is RFC 7231 the latest version about the HTTP/1.1 protocol?

I'm doing an university work on HTTP and I try to explain what happens when there is an HTTP connection between a client and a server. To do this, I'm using the "curl -v -i" command on an Ubuntu ...
0 votes
1 answer
7k views

How do I set http_proxy and https_proxy with the username and password with it in Linux?

I know it is pretty straightforward to use/export http_proxy and https_proxy in any Linux variant but, when it becomes tricky if we want to use with authentication like below, I have test this it is ...
4 votes
2 answers
7k views

Upload large files with curl without RAM cache.

I'm using curl to upload large files (from 5 to 20Gb) to HOOP based on HDFS (Hadoop Cluster) as follows: curl -f --data-binary "@$file" "$HOOP_HOST$UPLOAD_PATH?user.name=$HOOP_USER&op=create" ...
19 votes
2 answers
12k views

Redirect all requests to HTTPS, except for one subdirectory

I'm trying to move from self-signed certificates to Let's Encrypt certificates on my nginx webserver. Currently, I redirect all requests to http/80 to https/443, which uses a self signed certificate ...
18 votes
6 answers
134k views

How to enable all HTTP methods in an Apache HTTP Server

How can I enable the handling of all HTTP methods as defined in RFC 2616 on Apache web server ? These would be: OPTIONS GET HEAD POST PUT DELETE TRACE CONNECT I am using the Apache HTTP Server, ...
36 votes
3 answers
47k views

How can I return a 503 status in apache without invoking external scripts

I need to return a 503 status code from one of my sites while it's down for maintenance, in the time-honoured SE_firendly fashion. I can't seem to work out how to do this without invoking external ...
0 votes
0 answers
173 views

How to properly cache content in NGINX like in Plus version?

I saw official NGINX tutorial regarding content caching and tried to modify it according to my needs. I use CDN (Cloudfront), but the performance doesn't convince me. If my server was more faster it'd ...
1 vote
2 answers
9k views

How to use wget http status codes in an if else statement to take an action based on the status code

I'm writing a script that is downloading a bunch of files, I'm using wget to download the file and I want to echo back to the terminal custom status messages for each file based on 3 scenarios: ...
0 votes
1 answer
308 views

Should HTTP load balancer forward bad requests to backend?

If a HTTP client sends a GET request with a body that would generate a 400 Bad Request response, should the load balancer forward that request to the backend or deal with it immediately? Is there any ...
1 vote
0 answers
832 views

Nginx Redirect from HTTP to HTTPS works in Firefox but not in Chrome

with my Nginx configuration (see below) redirecting from http to https works fine when accessing the page (http://example.com/) with Firefox. But for some strange reason it does not work with Chrome. ...
2 votes
1 answer
3k views

LSASS.exe trying to communicate over port 80

We are running a standalone web server (Windows 2008 + IIS 7), and our antivirus is blocking LSASS.exe (C:\Windows\system32\lsass.exe) from making outbound connections over port 80. Why is LSASS ...
2 votes
1 answer
1k views

CloudFront usually misses from browser, hits from cURL

When I load my HTML page in my browser, all requests for assets have x-cache: Miss from cloudfront. If I reload my browser very quickly, I can sometimes get a Hit. If I open my developer tools and "...
16 votes
2 answers
11k views

CDN: How is it possible that my DNS delivers a different IP depending on the visitors location?

I found this explanation how a CDN works. But there is one thing I don't really understand. Let's assume I setup multiple DNS servers at my location and they use the nameserver domains dns1.example....
0 votes
1 answer
955 views

Inconsistent 403 Forbidden issues with images on a website

I am getting inconsistent HTTP 403 Forbidden results when requesting images embedded on a webpage. This is happening more frequently in FireFox, but occasionally also happens in Chrome. This website ...
0 votes
1 answer
757 views

Returning compressed data when client omits accept-encoding header

In the HTTP 1.1 Standard, it says that "If no Accept-Encoding field is in the request, any content-coding is considered acceptable by the user agent." Which means that a server can, for ...
0 votes
1 answer
2k views

http error 403 for vsphere login page

I am running a vcenter server, and created a desktop shortcut for the vsphere webclient login, it works well, but after a certain time, around 2 weeks the desktop shortcut will no longer work, and ...
1 vote
0 answers
89 views

Cannot get a response from host, but only from my internet connection

I'm trying to connect to a website that I own. It's a domain that points to a shopify store. The browser just hangs when attempting to load the site. When I issue a request using curl I get the ...
5 votes
2 answers
24k views

Rewrite request from POST to GET with nginx

I've got a backend server that, for various reasons, only processes GET requests. This server is located behind nginx proxy (i.e. all access is done to nginx, which proxies it to the backend with ...
0 votes
0 answers
884 views

How to pass https requests to http in nginx

I have a self signed certificate, I deployed my front end react app on nginx which is served by using HTTPS but front end is making call to back-end spring-boot app over HTTP and when i check inspect ...
3 votes
1 answer
2k views

Apache returns invalid Content-Length for gzip compressed 204 response

When apache returns a gzip compressed response with 204 response code and empty body server returns invalid header Content-Length: 20 instead of Content-Length: 0. Without gzip compression (without ...
0 votes
1 answer
631 views

Nginx www does not work

I really do not know why my nginx configuration does not work for www. My configuration is: server { listen 80; server_name postimg.cz www.postimg.cz; return 301 https://$server_name$...
-1 votes
2 answers
160 views

The Importance of Paying for SSL Certificate [closed]

Is It really compulsory to pay for ssl Certificate while setting up website? What are the advantages and disadvantages? Thank you.
1 vote
2 answers
9k views

How to specify GET path when sending web request to an IP with cURL?

Using output from the command below, % curl -v stackoverflow.com/questions * About to connect() to stackoverflow.com port 80 (#0) * Trying 198.252.206.16... * Connected to stackoverflow.com (...
9 votes
4 answers
65k views

How can I forward the HTTP and SSH port to my internal server using iptables?

I do not have the router so I made my CentOS 6.4 Linux system into a router, forwarding the public network traffic to my local LAN. It has two NIC cards, one for the public IP address (eth1) and ...
0 votes
3 answers
2k views

NGINX routes to the wrong virtual host when Host header contains colon character

My nginx.conf has several "server" sections, and a catch-all server section. Here is an example nginx.conf to give you an idea: user www-data; worker_processes auto; worker_cpu_affinity auto;...
11 votes
3 answers
10k views

Is it safe to use HTTP status 308 Permanent Redirect?

Is it safe to use the HTTP status code 308 Permanent Redirect (suggestion) in server responses? The issue with 301 Moved Permanently is that it only works with GET requests (to be fair: POST will ...
1 vote
1 answer
2k views

Curl and etc. HTTP requests not working when I connected to vpn

Please tell me how to solve next problem: Curl and etc. HTTP requests not working when I connected to vpn. I get a simple error - "could not resolve host". But when i disconnect from vpn ...
0 votes
1 answer
522 views

nginx empty response after reboot

I bought a new VPS, installed Ubuntu server 20.04, nginx,php7.4-fpm,MariaDB via apt. I scp uploaded my (working on my Ubuntu 20.04 laptop) PHP project. I could see the 'thank you for using nginx' page,...
0 votes
1 answer
2k views

Redirect HTTPS to HTTP for Safari User-Agents only

Yes, you read that right. I need HTTPS to HTTP for Safari only. Because all links referring to the site anywhere are HTTPS. I have a website that has an SSL certificate, and normally we force ...
0 votes
0 answers
271 views

Which HTTP Status Code is most appropriate for a non-cooperation response?

I'd like to send an HTTP response that indicates my server is not willing to cooperate with the requester, as a sort of (voluntarily-imposed non-legal) sanction. For example, ACME Corp stole your ...
4 votes
3 answers
62k views

Setting HTTP proxy in OpenVPN client

I'm having trouble configuring my OpenVPN client to use an HTTP proxy. If I don't enter any proxy information in the client.ovpn file I get the following output: Mon Jun 29 14:30:07 2015 OpenVPN 2.3....
0 votes
2 answers
1k views

haproxy: close or change port 80 of stats page

The http-port has to be available for another usage. Port 80 of the stats-page has to be closed or moved to another port. Removing mode http in the default section disables the page. echo >/dev/tcp/...
2 votes
1 answer
489 views

What is principial difference between upcoming DNS SVCB RRs and good old SRV records? [duplicate]

In DNS there was SRV record defined long ago, which allowed to direct some services for a domain to different machines. For example, this is how I publish a LDAP service for a domain example.com ...
2 votes
1 answer
337 views

is "access-control-allow-origin" a secure way to restrict communication between two servers?

I have two servers, A and B. I want server B to only accept HTTP requests from server A. is "access-control-allow-origin" a secure way to implement that?
0 votes
1 answer
165 views

Getting random 404 requests from unknown IPs in Apache + Ubuntu server

This is strange. I just installed a new Ubuntu + Apache in my Digitalocean droplet and installed a Laravel APP there. Now suddenly I see these kind of strange POST, GET and CONNECT requests from ...
0 votes
0 answers
637 views

Loopback connection seems blocked

Here is the situation i met: Server is managed by laravel forge It is serving behind cloudflare reverse proxy Nginx is up and running, listening on both port 80 and 443 (confirmed) now i need to ...
0 votes
0 answers
2k views

Squid Proxy Server Not Accepting External Connection?

I am running squid 3.5.12 on Ubuntu. I have the followings in /etc/squid/squid.conf acl SSL_ports port 443 acl CONNECT method CONNECT acl acl_allowed_ip src my.client.ip.address.com http_access allow ...
1 vote
1 answer
2k views

Can a server offer more than one TLS certificate?

Let's say I have a TLS certificate for a domain but I'm not sure if all user agents potentially connecting over HTTP would accept it. Can I obtain another certificate, signed by another certificate ...
258 votes
6 answers
303k views

How to reply with 200 from Nginx, without serving a file?

I have configured Apache to send back a 200 response without serving any file with this configuration line Redirect 200 /hello Can I do this with Nginx? I don't want to serve a file, I just want the ...
1 vote
2 answers
13k 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 ...
1 vote
0 answers
351 views

Apache and VirtualHosts in RedHat, Can't figure it out

already did my research and Im burned after reading and watching videos for hours; I can't make virtual hosts works at all, it doest matter which configuration I set but Apache will ignore it and ...
0 votes
0 answers
182 views

Bizarre intermittent, but long lasting failure to connect to just one server

I have a bizarre connection issue with just one server that I have no idea how to diagnose. Basically I'm setting up a self-hosted email service using iRedMail and everything works fine for a while ...
0 votes
1 answer
2k views

CentOS - make Samba share available via nginx

I have a collection of files on a Windows share named \\winserver\bucket. On a CentOS server, I am able to mount it so the content is available for perusal. I created an empty directory named /mnt/...
59 votes
4 answers
142k views

Connecting to HTTPS with netcat (nc) [closed]

I'm working on a homework assignment for my college course. The task is to fetch web pages on HTTPS using nc (netcat). To fetch a page over HTTP, I can simply do the following: cat request.txt | nc -w ...

1
3 4
5
6 7
46