still working through some issues with curl magic-auth
fixed profile photo upload
This commit is contained in:
		| @@ -101,6 +101,9 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) { | ||||
| 	if(x($opts,'cookiefile')) | ||||
| 		@curl_setopt($ch, CURLOPT_COOKIEFILE, $opts['cookiefile']); | ||||
|  | ||||
| 	if(x($opts,'cookie')) | ||||
| 		@curl_setopt($ch, CURLOPT_COOKIE, $opts['cookie']); | ||||
|  | ||||
| 	@curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,  | ||||
| 		((x($opts,'novalidate') && intval($opts['novalidate'])) ? false : true)); | ||||
|  | ||||
| @@ -258,6 +261,10 @@ function z_post_url($url,$params, $redirects = 0, $opts = array()) { | ||||
| 	if(x($opts,'cookiefile')) | ||||
| 		@curl_setopt($ch, CURLOPT_COOKIEFILE, $opts['cookiefile']); | ||||
|  | ||||
|  | ||||
| 	if(x($opts,'cookie')) | ||||
| 		@curl_setopt($ch, CURLOPT_COOKIE, $opts['cookie']); | ||||
|  | ||||
| 	@curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,  | ||||
| 		((x($opts,'novalidate') && intval($opts['novalidate'])) ? false : true)); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user