I keep getting 400 error code from hotfile.com when I try to get it using curl.
The problem is that all curl get requests in the for loop return the 400th request, with the exception of the last one, which is strange to me.
Here's a link to the script: http://pastie.org/627436 I use the Curl Sean Hubers shell: http://github.com/shuber/curl And also SimpleHMTLDOM: http://simplehtmldom.sourceforge.net/
It may be difficult for people to try if you do not have a hotfile account, since the script will not work with an unregistered account.
Greetings in advance :)
My first guess would be changing
$urls = explode("\n",$_POST['urls']); => $urls = explode("\r\n",$_POST['urls']); (\n => \r\n)
, , , URL- http:\xyz.com\r . , URL- , , . , :)
Source: https://habr.com/ru/post/1718382/More articles:get _complete_ process name from pid - linuxFilter a SharePoint List by Audience - sharepointHow to make the width of a stackpanel the width of another stackpanel? - widthHttpRequest.GetHashCode () - how often do collisions occur? - hashcodeBroken binding using the Prism, Silverlight and ViewFirst approach - data-bindingHow to get Javamail to clear the message cache? - javaManual crusher against serial input - inputWhat is the best way to cache data using sqlite file or database? - fileRecommended updating Java source from 1.4.2 to 1.6.0_10? (skipping 1.5) - javaEclipse compilation problem - javaAll Articles