Lines Matching refs:curl

217 	curl_multi_remove_handle(curlstream->multi, curlstream->curl);  in php_curl_stream_close()
218 curl_easy_cleanup(curlstream->curl); in php_curl_stream_close()
282 curlstream->curl = curl_easy_init(); in php_curl_stream_opener()
302 curl_easy_setopt(curlstream->curl, CURLOPT_URL, curlstream->url); in php_curl_stream_opener()
305 curl_easy_setopt(curlstream->curl, CURLOPT_WRITEFUNCTION, on_data_available); in php_curl_stream_opener()
306 curl_easy_setopt(curlstream->curl, CURLOPT_FILE, stream); in php_curl_stream_opener()
309 curl_easy_setopt(curlstream->curl, CURLOPT_HEADERFUNCTION, on_header_available); in php_curl_stream_opener()
310 curl_easy_setopt(curlstream->curl, CURLOPT_WRITEHEADER, stream); in php_curl_stream_opener()
312 curl_easy_setopt(curlstream->curl, CURLOPT_ERRORBUFFER, curlstream->errstr); in php_curl_stream_opener()
313 curl_easy_setopt(curlstream->curl, CURLOPT_VERBOSE, 0); in php_curl_stream_opener()
316 curl_easy_setopt(curlstream->curl, CURLOPT_PROGRESSFUNCTION, on_progress_avail); in php_curl_stream_opener()
317 curl_easy_setopt(curlstream->curl, CURLOPT_PROGRESSDATA, stream); in php_curl_stream_opener()
318 curl_easy_setopt(curlstream->curl, CURLOPT_NOPROGRESS, 0); in php_curl_stream_opener()
320 …curl_easy_setopt(curlstream->curl, CURLOPT_USERAGENT, FG(user_agent) ? FG(user_agent) : "PHP/" PHP… in php_curl_stream_opener()
327 curl_easy_setopt(curlstream->curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); in php_curl_stream_opener()
329 curl_easy_setopt(curlstream->curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); in php_curl_stream_opener()
334 curl_easy_setopt(curlstream->curl, CURLOPT_SSL_VERIFYHOST, 2); in php_curl_stream_opener()
336 curl_easy_setopt(curlstream->curl, CURLOPT_SSL_VERIFYHOST, 0); in php_curl_stream_opener()
339 curl_easy_setopt(curlstream->curl, CURLOPT_SSL_VERIFYPEER, 1); in php_curl_stream_opener()
341 curl_easy_setopt(curlstream->curl, CURLOPT_SSL_VERIFYPEER, 0); in php_curl_stream_opener()
346 curl_easy_setopt(curlstream->curl, CURLOPT_USERAGENT, Z_STRVAL_PP(ctx_opt)); in php_curl_stream_opener()
375 curl_easy_setopt(curlstream->curl, CURLOPT_HTTPHEADER, curlstream->headers_slist); in php_curl_stream_opener()
381 curl_easy_setopt(curlstream->curl, CURLOPT_NOBODY, 1); in php_curl_stream_opener()
384 curl_easy_setopt(curlstream->curl, CURLOPT_POST, 1); in php_curl_stream_opener()
386 curl_easy_setopt(curlstream->curl, CURLOPT_CUSTOMREQUEST, Z_STRVAL_PP(ctx_opt)); in php_curl_stream_opener()
389 curl_easy_setopt(curlstream->curl, CURLOPT_POSTFIELDS, Z_STRVAL_PP(ctx_opt)); in php_curl_stream_opener()
390 curl_easy_setopt(curlstream->curl, CURLOPT_POSTFIELDSIZE, (long)Z_STRLEN_PP(ctx_opt)); in php_curl_stream_opener()
396 curl_easy_setopt(curlstream->curl, CURLOPT_PROXY, Z_STRVAL_PP(ctx_opt)); in php_curl_stream_opener()
407 curl_easy_setopt(curlstream->curl, CURLOPT_FOLLOWLOCATION, 0); in php_curl_stream_opener()
409 curl_easy_setopt(curlstream->curl, CURLOPT_FOLLOWLOCATION, 1); in php_curl_stream_opener()
411 curl_easy_setopt(curlstream->curl, CURLOPT_MAXREDIRS, mr); in php_curl_stream_opener()
415 curl_easy_setopt(curlstream->curl, CURLOPT_FOLLOWLOCATION, 0); in php_curl_stream_opener()
417 curl_easy_setopt(curlstream->curl, CURLOPT_FOLLOWLOCATION, 1); in php_curl_stream_opener()
419 curl_easy_setopt(curlstream->curl, CURLOPT_MAXREDIRS, 20L); in php_curl_stream_opener()
423 curl_easy_setopt(curlstream->curl, CURLOPT_SSL_VERIFYHOST, 2); in php_curl_stream_opener()
425 curl_easy_setopt(curlstream->curl, CURLOPT_SSL_VERIFYHOST, 0); in php_curl_stream_opener()
428 curl_easy_setopt(curlstream->curl, CURLOPT_SSL_VERIFYPEER, 1); in php_curl_stream_opener()
430 curl_easy_setopt(curlstream->curl, CURLOPT_SSL_VERIFYPEER, 0); in php_curl_stream_opener()
435 curl_multi_add_handle(curlstream->multi, curlstream->curl); in php_curl_stream_opener()
464 curl_easy_perform(curlstream->curl); in php_curl_stream_opener()