Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow PhpBrowser to open local files #11

Open
sasha-x opened this issue Apr 22, 2016 · 0 comments
Open

Allow PhpBrowser to open local files #11

sasha-x opened this issue Apr 22, 2016 · 0 comments

Comments

@sasha-x
Copy link

sasha-x commented Apr 22, 2016

If I am trying:

$uri = 'file://some_local.html';
$I->amOnPage($uri);

I see:

[GuzzleHttp\Exception\RequestException] cURL error 1: Protocol "file" not supported or disabled in libcurl (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

I think it is about CURLOPT_PROTOCOLS and CURLOPT_REDIR_PROTOCOLS values.
But when I am trying to hardcode it to CURLPROTO_ALL I see:

[GuzzleHttp\Exception\RequestException] cURL error 0: The cURL request was retried 3 times and did not succeed. The most likely reason for the failure is that cURL was unable to rewind the body of the request and subsequent retries resulted in the same error. Turn on the debug option to see what went wrong. See https://bugs.php.net/bug.php?id=47204 for more information. (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
@Naktibalda Naktibalda transferred this issue from Codeception/Codeception Jan 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant