# OAuth Request Engine Behaviour

- Thread: https://externals.io/message/56637
- Original archive: https://news-web.php.net/php.internals/56637
- Started by Ben Tadiar on 2011-11-25T12:25:34+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #56637 — Ben Tadiar — 2011-11-25T12:25:34+00:00

URL: https://externals.io/message/56637#56637

Hi,

 

Paul Dragoonis directed me to you with a question about the internals of
PECL OAuth.

 

Upon calling OAuth::getRequestToken() the following Exception is thrown if I
have not explicitely set the request engine using OAuth::setRequestEngine():
Fatal error: Uncaught exception 'OAuthException' with message 'making the
request failed (Unsupported protocol)'. 

 

Is this behaviour expected or should the request engine be set to either PHP
Streams/cURL by default?

 

Regards,

Ben Tadiar

ben@handcraftedbyben.co.uk

---

## #56638 — Tjerk Anne Meesters — 2011-11-25T13:34:27+00:00

URL: https://externals.io/message/56637#56638 · In reply to: #56637

Hi,

First off, it would've been better to contact one of the project members
rather than the internals list :)

To answer your question though, I'm assuming that you're accessing a secure
http url, which requires openssl iirc.

Please address any replies to me directly and/or jawed@php.net

Thanks


> Hi,
>
>
>
> Paul Dragoonis directed me to you with a question about the internals of
> PECL OAuth.
>
>
>
> Upon calling OAuth::getRequestToken() the following Exception is thrown if
> I
> have not explicitely set the request engine using
> OAuth::setRequestEngine():
> Fatal error: Uncaught exception 'OAuthException' with message 'making the
> request failed (Unsupported protocol)'.
>
>
>
> Is this behaviour expected or should the request engine be set to either
> PHP
> Streams/cURL by default?
>
>
>
> Regards,
>
> Ben Tadiar
>
> ben@handcraftedbyben.co.uk
