Skip to content

Allow PhpBrowser to open local files #11

@sasha-x

Description

@sasha-x

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy