We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 041db05 + 38e794a commit 7a55c6fCopy full SHA for 7a55c6f
src/CurlAutoLogin.php
@@ -151,6 +151,11 @@ public function parseCurl($curlContent) {
151
$cookieData = $cookieMatch[1];
152
}
153
154
+ //兼容 -b 参数
155
+ if(empty($cookieData) && preg_match("#-b '([^']*)'#is", $curlContent, $cookieMatch)) {
156
+ $cookieData = "Cookie: " . $cookieMatch[1];
157
+ }
158
+
159
//remove cookie data in header
160
$curlContent = preg_replace("#-H 'Cookie:[^']*'#is", '', $curlContent);
161
0 commit comments