From fa0a6dc7c347de1aba058ecfbf8d1f003e46d641 Mon Sep 17 00:00:00 2001 From: Olav Morken <olav.morken@uninett.no> Date: Tue, 30 Nov 2010 10:06:52 +0000 Subject: [PATCH] Bindings_Shib13_Artifact: HTTP proxy support. git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2665 44740490-163a-0410-bde0-09ae8108e29a --- lib/SimpleSAML/Bindings/Shib13/Artifact.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/SimpleSAML/Bindings/Shib13/Artifact.php b/lib/SimpleSAML/Bindings/Shib13/Artifact.php index 7ed7561e1..9d7a6d40d 100644 --- a/lib/SimpleSAML/Bindings/Shib13/Artifact.php +++ b/lib/SimpleSAML/Bindings/Shib13/Artifact.php @@ -160,10 +160,9 @@ class SimpleSAML_Bindings_Shib13_Artifact { 'Content-Type: text/xml', ), ); - $context = stream_context_create($opts); /* Fetch the artifact. */ - $response = file_get_contents($url, FALSE, $context); + $response = SimpleSAML_Utilities::fetch($url, $opts); if ($response === FALSE) { throw new SimpleSAML_Error_Exception('Failed to retrieve assertion from IdP.'); } -- GitLab