tssaltan / develnext-jurl Goto Github PK
View Code? Open in Web Editor NEWПакет расширений для работы с сетью c поддержкой curl_* функций
Home Page: https://tssaltan.ru/1116.develnext-jurl-curl/
Пакет расширений для работы с сетью c поддержкой curl_* функций
Home Page: https://tssaltan.ru/1116.develnext-jurl-curl/
Есть куки, в каком формате их отправлять?
Надо учитывать, что файла может и не быть, обрабатывать IOException.
php\io\IOException: File 'C:\Users\User\Desktop\[jURL] Multi Download/src/JPHP-INF/.bootstrap' not found
in file 'res://develnext/bundle/jurl/jURLBundle.php', on line 58
#0 {closure}() called at [res://ide/Ide.php:201]
#1 ide\Ide->shutdown() called at [res://ide/Ide.php:220]
#2 ide\systems\ProjectSystem::close() called at [res://ide/Ide.php:1335]
#3 ide\project\Project->close() called at [res://ide/systems/ProjectSystem.php:312]
#4 ide\project\Project->trigger() called at [res://ide/project/Project.php:1037]
#5 ide\project\behaviours\BundleProjectBehaviour->doClose() called at [res://ide/project/Project.php:625]
#6 develnext\bundle\jurl\jURLBundle->onRemove() called at [res://ide/project/behaviours/BundleProjectBehaviour.php:128]
#7 develnext\bundle\jurl\jURLBundle->removeCode() called at [res://develnext/bundle/jurl/jURLBundle.php:30]
#8 develnext\bundle\jurl\jURLBundle->getBootstrap() called at [res://develnext/bundle/jurl/jURLBundle.php:52]
#9 php\io\Stream::getContents() called at [res://develnext/bundle/jurl/jURLBundle.php:58]
#10 php\io\FileStream->__construct() called at [res://develnext/bundle/jurl/jURLBundle.php:58]
#11 {main}
Нужна проверка, были ли отправлены заголовки content-type, иначе скрипт может переписать пользовательские заголовки content-type, отправленные серверу.
При запросе файл с куками создается а внутри пустой массив
https://pp.userapi.com/c837631/v837631781/3bc45/n8xxRT_29Hs.jpg
в 1 поток все нормально
только по окончанию
Fatal error: Uncaught exception 'php\lang\JavaException' with message 'java.lang.OutOfMemoryError: Java heap space' in res://bundle/jurl/jURLDownloader.php on line 591, position 23
Мб будет работать с заголовком Proxy-Authorization
Proxy-Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
https://ru.wikipedia.org/wiki/Список_заголовков_HTTP
CURLOPT_PROXYUSERPWD
System.setProperty("javax.net.ssl.trustStore", "src/main/resources/test.jks");
System.setProperty("javax.net.ssl.trustStorePassword", KEYSTORE_PASSWORD);
System.setProperty("javax.net.ssl.keyStore", "src/main/resources/test.jks");
System.setProperty("javax.net.ssl.keyStorePassword", KEYSTORE_PASSWORD);
Если content-length: 0 то будет ошибка, мол, невозможно прочитать данные
curl_setopt($ch, CURLOPT_POSTFIELDS, ["action" => '123', "width" => '321', 'file[]' => '@'.$newFile]);
curl_setopt($ch, CURLOPT_POST, 1);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.