Giter Club home page Giter Club logo

Comments (5)

aristoler avatar aristoler commented on May 18, 2024

_NOTICE: ErrorException: Undefined index: scheme in /Users/Arist/GitHere/php-curl/src/Toolkit.php:302
Stack trace:
#0 /Users/Arist/Git/php-curl/src/Toolkit.php(302): ErrorHandler::{closure}(8, 'Undefined index...', '/Users/Arist/Gi...', 302, Array)
#1 /Users/Arist/Git/php-curl/src/HttpClone.php(93): Ares333\Curl\Toolkit->urlFormater('//s145js.nicebo...')
#2 /Users/Arist/Git/php-curl/src/HttpClone.php(143): Ares333\Curl\HttpClone->urlFormater('//s145js.nicebo...')
#3 /Users/Arist/Git/php-curl/src/HttpClone.php(221): Ares333\Curl\HttpClone->url2src('//s145js.nicebo...', 、, true)
#4 /Users/Arist/Git/php-curl/demo/http_clone.php(37): Ares333\Curl\HttpClone->onProcess(Array, Array)
#5 [internal function]: HttpCloneDemo->onProcess(Array, Array)
#6 /Users/Arist/Git/php-curl/src/Curl.php(494): call_user_func(Array, Array, Array)
#7 /Users/Arist/Git/php-curl/src/Curl.php(466): Ares333\Curl\Curl->onProcess(Array, Array)
#8 /Users/Arist/Git/php-curl/src/Curl.php(285): Ares333\Curl\Curl->runTask()
#9 /Users/Arist/Git/php-curl/src/HttpClone.php(126): Ares333\Curl\Curl->start()
#10 /Users/Arist/Git/php-curl/demo/http_clone.php(93): Ares333\Curl\HttpClone->start()

from php-curl.

ares333 avatar ares333 commented on May 18, 2024

没遇到过,echo $url变量看一下,php的parse_url()解析url变量出问题了。

from php-curl.

aristoler avatar aristoler commented on May 18, 2024

Omit the protocol from embedded resources. Omit the protocol portion (http:, https:) from URLs pointing to images and other media files, style sheets, and scripts unless the respective files are not available over both protocols. Omitting the protocol—which makes the URL relative—prevents mixed content issues and results in minor file size savings. 以上是原因。scheme不一定存在。 strtolower($parse['scheme']);

from php-curl.

ares333 avatar ares333 commented on May 18, 2024

这种机制在浏览器中默认支持,curl不支持,所以需要一个默认scheme,scheme由library添加不合适,在用户逻辑里面补全默认sheme可以解决问题。

from php-curl.

aristoler avatar aristoler commented on May 18, 2024

默认不太合适。用父级页面的scheme比较合适

from php-curl.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.