|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-09-14 04:55 UTC] datibbaw@php.net
[2014-09-15 13:21 UTC] samantha dot halfon at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 16:00:02 2025 UTC |
Description: ------------ I wasn't able to find any option in the documentation enabling me to use a proxy in the curl calls. Tests using the stream method (with stream_context_set_default to declare the proxy) failed as well. Test script: --------------- /*$default_opts = array( 'http'=>array( 'method'=>"GET", 'header'=>"Accept-language: en\r\n" . "Cookie: foo=bar", 'proxy'=>"http://192.168.0.30:3128" ) ); $default = stream_context_set_default($default_opts);*/ $this->_oauth = new \OAuth($options['consumerKey'], $options['consumerSecret']); $this->_oauth->getRequestToken($this->_options['requestTokenUrl'], $this->_options['callbackUrl']);