Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dex4er/perl-http-tiny-preservehostheader
HTTP::Tiny::PreserveHostHeader - preserve Host header on requests
https://github.com/dex4er/perl-http-tiny-preservehostheader
Last synced: 10 days ago
JSON representation
HTTP::Tiny::PreserveHostHeader - preserve Host header on requests
- Host: GitHub
- URL: https://github.com/dex4er/perl-http-tiny-preservehostheader
- Owner: dex4er
- Created: 2014-06-03T14:45:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-06-23T17:39:40.000Z (over 1 year ago)
- Last Synced: 2024-10-28T09:01:57.693Z (about 2 months ago)
- Language: Perl
- Size: 43.9 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
NAME
HTTP::Tiny::PreserveHostHeader - Preserve Host header on requests
SYNOPSIS
use HTTP::Tiny::PreserveHostHeader;
my $response = HTTP::Tiny::PreserveHostHeader->new->get(
'http://example.com', {
headers => {
Host => 'example.net',
}
}
);DESCRIPTION
This module extends HTTP::Tiny and allows to preserve original Host
header from HTTP request.The HTTP::Tiny is strictly compatible with HTTP 1.1 spec, section
14.23:The Host field value MUST represent the naming authority of the
origin server or gateway given by the original URL.It means that HTTP::Tiny always rewrite Host header to the value taken
from URL.Some non-standard HTTP clients, such as reverse HTTP proxy, need to
override Host header to other value.SEE ALSO
HTTP::Tiny, https://github.com/chansen/p5-http-tiny/pull/34.
BUGS
If you find the bug or want to implement new features, please report it
at https://github.com/dex4er/perl-HTTP-Tiny-PreserveHostHeader/issuesThe code repository is available at
http://github.com/dex4er/perl-HTTP-Tiny-PreserveHostHeaderAUTHOR
Piotr Roszatycki
LICENSE
Copyright (c) 2014-2016, 2023 Piotr Roszatycki .
This is free software; you can redistribute it and/or modify it under
the same terms as perl itself.See http://dev.perl.org/licenses/artistic.html