Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Aug 2020 07:12:48 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r546975 - in head/www: . py-forcediphttpsadapter
Message-ID:  <202008300712.07U7CmaP005010@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Aug 30 07:12:48 2020
New Revision: 546975
URL: https://svnweb.freebsd.org/changeset/ports/546975

Log:
  Add py-forcediphttpsadapter 1.0.1
  
  This module implements a set of requests TransportAdapter, PoolManager,
  ConnectionPool and HTTPSConnection with one goal only: to use a specific IP
  address when connecting via SSL to a web service without running into SNI
  trouble.
  
  The usual technique to force an IP address on an HTTP connection with Requests
  is (assuming I want http://example.com/some/path on IP 1.2.3.4):
    requests.get("http://1.2.3.4/some/path", headers={'Host': 'example.com'})
  
  This is useful if I want to specifically test how 1.2.3.4 is responding; for
  instance, if example.com is DNS round-robined to several IP addresses and I want
  to hit one of them specifically.
  
  WWW: https://github.com/Roadmaster/forcediphttpsadapter

Added:
  head/www/py-forcediphttpsadapter/
  head/www/py-forcediphttpsadapter/Makefile   (contents, props changed)
  head/www/py-forcediphttpsadapter/distinfo   (contents, props changed)
  head/www/py-forcediphttpsadapter/pkg-descr   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Sun Aug 30 07:12:43 2020	(r546974)
+++ head/www/Makefile	Sun Aug 30 07:12:48 2020	(r546975)
@@ -1593,6 +1593,7 @@
     SUBDIR += py-flexget
     SUBDIR += py-flup6
     SUBDIR += py-folium
+    SUBDIR += py-forcediphttpsadapter
     SUBDIR += py-formencode
     SUBDIR += py-freenit
     SUBDIR += py-frozen-flask

Added: head/www/py-forcediphttpsadapter/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-forcediphttpsadapter/Makefile	Sun Aug 30 07:12:48 2020	(r546975)
@@ -0,0 +1,20 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	forcediphttpsadapter
+PORTVERSION=	1.0.1
+CATEGORIES=	www python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Use IP address when connecting via SSL
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>

Added: head/www/py-forcediphttpsadapter/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-forcediphttpsadapter/distinfo	Sun Aug 30 07:12:48 2020	(r546975)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1598643715
+SHA256 (forcediphttpsadapter-1.0.1.tar.gz) = 3be7c5d3546f0664a8edd15daf2f1f4a2bc1296488771a154f750567e6a15db6
+SIZE (forcediphttpsadapter-1.0.1.tar.gz) = 3624

Added: head/www/py-forcediphttpsadapter/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-forcediphttpsadapter/pkg-descr	Sun Aug 30 07:12:48 2020	(r546975)
@@ -0,0 +1,14 @@
+This module implements a set of requests TransportAdapter, PoolManager,
+ConnectionPool and HTTPSConnection with one goal only: to use a specific IP
+address when connecting via SSL to a web service without running into SNI
+trouble.
+
+The usual technique to force an IP address on an HTTP connection with Requests
+is (assuming I want http://example.com/some/path on IP 1.2.3.4):
+  requests.get("http://1.2.3.4/some/path", headers={'Host': 'example.com'})
+
+This is useful if I want to specifically test how 1.2.3.4 is responding; for
+instance, if example.com is DNS round-robined to several IP addresses and I want
+to hit one of them specifically.
+
+WWW: https://github.com/Roadmaster/forcediphttpsadapter



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008300712.07U7CmaP005010>