яШяа JFIF    яЫ „ ( %!1!%)+...383-7(-.+  -% &5/------------------------------------------------яА  ·" яД    яД ;   !1AQ"aq2Ѓ‘Ў±’БСр#3BRrбсb‚ІяД    яД *  !1"AQa2qр±Б#BЃяЪ   ? yR“њd&vGlJwZРvKо)АYrxрЊBҐІк—#j]ZиA•ЧБT^ЃЩdptи{Ї[w k˜WSФ‹*QБКaиy¤ґјBbлm№*ќ  &Чфч0Вх<|0pь’њљfЕ·M`‘М¬э Ќш ^.qЭя R‹рЅ¬·Њ¬^EYTфFЫГ­Ёw<-.‘j)ЎMН-/љs yqTЙБшф»'&ЫЮF‚Kz-(ЌЄџЩ[lКЕгшјЦ‡ґ¶МЭНЖцбў<“БGЦТЪ$ЋЉwќm€ј2З*e “ифZ(цY-FпОбЖVћѓҐѓЩenм櫧єlнТ µD¬¬wТЇ©H4БFXє1 ЅVЧsIOqSBЫЎNzJц“KzJОѕ•cXµО%ЈЂµvZcњгт•FSuMєЩ–ј%­†хBЩ ЄЦґРС##ъВП\[%ЌсђyY Ск‰…¤ !ўVТД‚О1ЩЋRЭIеј-NsZЄІJ†LTНAдђтP®ЧћQ:yЧґ˜Іg”_g=™›НМ mНжцДэЦЇY¶ј¬e+Hyj”e‘!EµЙcЭёаў®µSoХ{Ґ€ѓЧ¬*®h g<Ґ@ЎK‚I$юW+†‘Wэ'м№_”>ГДэ lНБUs¦1АЎ,ЇЂo*Кє§Eлї.U"N&CTіu7˜Иь _0вV’ъ°yКH,Бq ,Й)ЙРЛHжгІЈвЈ5<µЩбцt ;r‹hnЖz%аЭ“Хz+4і§ КiЫё)­ЅХP6п+F>0TРІ‹`љцЏслђЮ&бiф}ShћЙnђя ?™ikЬЂХџЙИ§ґҐ@хmБАUSУLбFО·˜’Њ©ЁђhтєЅ_eЋ¶ЪЯr тЁiе_qt]MYд»hя qю ЬсЈВ9®LaJрpPѕђЧџ€Я˜vкЂЎ\е"z·Ўо[лиV‚Ж¬В¤вІ*a§†ZMoоА=ПкW›kpџS§pію §жђш\QhЙMІйАКbЛ’жДYюH=Ь’ Ѓ€кmЃЈЫшЄ`с№C”€Jtй ийНЮс•цµи8o…FЈp]ЦйЙ>‰pҐPр1ЪF>‹n8(*Љ›ЫaЪ€љ.цYХЭ‰[‚iћЅЦTШ№Ћ’ JГзЕтM!сЊфлxћЫ]нВЙХФ¶aJЫSћW›ІиЫТјЬ©ё`yКПQФ`*кkEҐ#nѓN­ЏkZ·ўKwєћA_Ї7’~И© ОЃВЗйJчРЌЩ;Лч№ё-2§ћКqRxYk—Т=UЦЦЂв>ФZ qшThv@Ф.wС c{#&@ь#l®;D$”kGGмТvz/«7[Pу+”i”ж3СnIlК`nrРbmЇњЇQi“%}rAVй—PмрT*SЭПСFЈ`{'двн±нжЧ6RЦX46PФ®•‚тp™здє(¤і3WТ…Uх\a*є7Ќ7lq‹^„r˜TЄвЬ$vs2ќ±ш…MU Ш%*Е§+«\uQѕ ‚–XVЬиHы •Й!љ4t*Hgиію"¬Zм±®Њщ‡с JКX+RэVАUд‰цн+ЮЊ]PђiJМэѓ©T XоАщIф= Эi–ЮPO=љIҐиНaђ3лВХ[¶С uШ™т&й2љЌZ@тЄ.*ЊЃБЃSZњ‚® ("Ф)µѓs€Ђ8Yєъ©/ юБ цЊЏ¬-FЇh я ЪOcЈЂвв=ъ@ќ·HјR¶lЧПвѕЬP‘”Ypэ!wr?-Ґ±±цdu«gN…L­эpBН1‡yмW–¶Ќ•HyoPѕ\С•тСЂiHЦґ,єЭЩђ0aЎЫмU·L.•Yy`µL•S°лЫњ,ЅэоHZz!ВJQ«iНщђ‹V¬«Mўb{Ј(Ю €Ћtژ <)^Qi’’_»`ю:ф№р д}8Щ±ш9_.)a[kSrѕйў> ;wИWU§<Ўhѕ .Ѕ\z …H Ж0”ЫRҐLrUwBєЙЦЄ!Vј*ЄЬ%·U‰бhuir˜У®]ЋrВ¦rљР№ „eZ‹uRаГ%e-х*Баb` ЕЈлOСnоЁУ>Ў#рцњM^#iзщvTсвЬЋЧlЩiґH¦ЭС1льQm`лиc Uµё+и!2Й’§IXіР%єЦіNЪ“ЄФ;ZРI$?ўЈb$ШЗв(9лПя ђ¦Јf›…2аЧZВаKe ˜гј­­ЌqUЎн8IОЗб[ Uѕґ)9«!гmhЫ1Ўў^N˜БИ0 гІ•Јf’№•_ВоІюсЃє;ВЧ†µр2ТЧHтњЁѕFF©'ґ€4b! yBGH_jС‚ЂФp'?uџЙiБЪbQ¤ љT„#И•ТЊЧС¬Є˜S©X5gнк”ЬЮ’SF64Scjw‚U…`xI]sAы№M( 5ATЇHА_+Хs± 0ф^ЩIB++§h@˜_YjвsВpЗ0„{°UЊв‹@G ђџ·Ћлђа- Ѕ:кхоҐ*·ЎХ}ё© ҐшTЮ‚MH*ЗЦ”Ґ·2оQцХ’С: єoЬ@ ђСw5(Я°Кua­‰ь+aЗ ~жw[3WЦ›€(ђРґХPуеYлЄ„rF1•E‰КБ)Ч3Ђ˜XЧ„Ўм­TmЅЁеIЙҐFІќq±§TШт~Аz ®*ЊуI»љЂsџи*б’жё…WЙґ¶a0Qмj®ЃАђ¬%{сTЊЌЫ.Ю…ЅўЧґ±нc„z©6§u6Ц„ЭЃhЛ;АЦ¦ 8Ђd9Д7эЅ–ЋКЭґШС +Ю•xЉьР·sЫИЃ&LI‚JT’)КR¤0}fП }P®џJбђцµаdp`…д_ЪpъХ)–—ЌЫЙ™вg·(ќЕ•tZ ЮЖ 'ПёЂqЗU74Н§iZ{=MТhЫПБdьЗ$џ©Lћ|° *ЖUUn· &¤ЊН¶p¦HYќJйЫ‹Эj© /вЄ@9®XьИ?NСlќЬѕHY§xЉґ”nЈЁЌ„uXЪ–„ФЬA…згЖћЩи8ьjљ†ю «а»ІЄЭЂ pќQ¬ВФК4;Ќ*3хi™MlZ6 ®зw Єа™ЖИµ±›№PЄ Sіhr!–Э”шњаDT7/†ТЎЙПІigD“>§j KAXѕМ3¬jv+–ФР ђШЯ§ЏШІам #©_=Пт¦z–¶ЮTm‹ЖжВ¦ҐР>ь}ЇTЦЃ<|agўґ®{ПEр*ЮюЛЦі%Љ„њ…љЦ5z–µ›W.ўHhё~a–њ%ъќ‹j±Н"eґ4i=Ќ™vЧ±Їi8аѓђRЌzіM75ЩiЋ±ЦџfгEгu6ёМ4Бщ\СХ§Ёиeвo0°ь0зdЋ Hйџ§ЭrИЄКz2дeu·ФlµїбЏH$tЋQ>eOЉЗФ$µ¦@±…«ЈBђА ь/?“ш=Й#ВЩ¤ЦЗ•ЯPSЅ/В·.iЏPЅ¦•Ѕ28sй4vOЖuz3zсѕ™жTј&за¶ >—ЂZ2гц[–0+н[†р•#ћFЮ‘Ќ¶р]!Й(пмЕ(Ѓ!>s`r’ЬjeЋд(Ґ'Р|,й)‹,Гy@\ш‹°ы¤ъ‡‰њpР–’“йљп‚ЯEЛэ ?й?uЛ№ЎyWV‹·щЋ%8mЕJ ˜ђ„№ёi ЋЉw: u=¤-2‹dЈTмгSuGL+mк<М*иЧ¦1…чц‚г asЌг&5µХsЇ«ЁжuФ\Чp˜УhЊ¤аѕЖѓ qСYL‚Ці>Y(‹PKўе”i—;арUЪ•Фp .¶±.!i,и5­‡4$IцUEGLНРРXrж§юЁЪUE6m ъ ъ»•UеИ ГJC¤Х?ґґзжЄ¶%4Б•ББЈЧнЃAЋЖTчЇ]I]FЎш>ЉЧ№Pа9+‚eјe¤©Ѓ"AкiеҐdфЭ!Ї§Wk|ЃМt–пђDv–/O¬рDѓСc/,џo]ОiХ"HИI ћђHQгЖ_ѓn –ёіsб©pv"b и}}К&ПГб¤Iк:pИџUЈЅБ-_)‰UxЎ$lЋ:fЄЪ˜ Й•(I,Эеoxўinе8*G“>ГЊэKG}RЪЂв8FrajЁЩ·hЋ !’*za„њ]Ј lx%§РВбEэVіRТЪGYZНшoЪWџ›§·С®мѕЪъ昀аB№єеXуr­ґё¦љ{[ФёЉd,т–ґtжы єсEq†Ѓ ]З‰+у№ N¬т†})0‚“щBЗ,‚Єш®нНЪЋрe iqT™{Оz+¶µЄ«‡O ћBП2‰eеB89CЪѓ9©ЊеYыkZЙтySiўу@њВд/я (W)ъd^UцfjiВ0cHЬ!hиЩmщ‚-”ЪЎкгwBъЇаЖ7CЫ”ЖЦ›X$ЃхZo†И)Eэ F3”VZqmХ)’!wUЇщxM4н9µ<§ къ3Y .хqDйf“Ыйцдz„m |М&T Њ¬Ю"}—• иљИы°{*оiбh­«¶Ј&2і6чм¦6· U9щ*­ <®_# Ф7ґ˜ВMei˜ѓёКu^пh-оЊР-ZкНtLпбьSbП)НDVЌZH*П#Щ5ЁU©ЇiўVP+aSRIВЄв‘!џpжЊ¤c¦ж5g#ђЃєЅЃ’zМt@ЫкНy€pчфHдЖР=э‰Эе‚{• {Ђ#0dџА… нN¦в)УцqпћќёWЫTЄа kA<ДВџ)/“Rт§T8¤ D1э’к4Юy ЌЅbЫ2°л^лOўW––ћњ,Э&Bcc[iVгўiмСVd…ќЦґ–ФїCЩ<Ґp_\Щ tћ™VЏЦн+Тqk·ф9„ћќSХ{uЦћЧsA©я „иT»]…—'‡уM¶ЮП9Ґ\…цҐСњ-[B©EЖd ы ю0YeУ+ґ‚џX‘%nЈЄ…0HКЎф”Ьl›m…ТЅ!Ющ*–У…{9]юEMі·®_ &вqи6:hё{ЫАhЊ$Х4З1пc§КHћћкъГиn-09”%?@vс$ЋЇe– Ы®Н‹ѓtИТ§Ц КІм5­&P¶zЖL6AК¶ЮеЋ$?DНZЩУPбv§°nЭЫфSѕ»i”фК¬Rs~_4я ©a·"¦yеrЋ€9{Pя x —\T3 !окёђР‰‡@„qБv+jАjUМ…uЂd<Є+R2«{a<ўЁ‹»УФ77+Wа[РтсХ лр°4)I+Uя Џl^j:Ё$0=њVЏ ХL)ћ€JҐБL…/jО ZФТлє2W ®ћ (@э>JЏя '„чhRшh( №1K4с#љV`pЌЩђTљШwє<јЂ©1і{Ј)СXыPr9RcІ 4ід)Sr¬ы© Џgto\„тЩтYП„~•© ”–КЕиxьєщ°d"jЬO:хЃЊA!7€Ёµф‹€’т+љEПЬ0%{M'‰ѓЗTі^рЕ“ІиІЎд`rЪмт¶=ЬE*›LК7QТ]AРо{ЋЁ]‚A<Ї5Л‹©.Ћ‹}<Б‚9_KЂ (еДИфQ©LµҐз9FХРЌы©sД®C9Аж!r‰тЮФpiм їT±п0Їјёq’С!ІHп ё Т\@а™Ь©B>ЫFћц†6Ч 4гЫє6О‹Є0ё4“ПІ^П#ҐВЭ>Р/@¦йtyЂЏB‘¶Ы]єУ*љДёpІ¶М6Ў&<СџDP¤Ч9Рб—џ¬atM'Т >З bЪмЄ— wРIХ!ЬЃ€V^ЦtфзNЁ!оЋ6=иFЧDЄЬ†‚9*?О q¦6фhё8ј‰ ЫЌ {‘’%WoHoNф.э“l˜з€^—б»}”"1+ҐУuJЊ ;ЁИrЅ&› иЅ/ IЙ“љKH“ђп*З№Pч-в№ИJЩ3Р+Є9 ъ’ии2Ќ µд ѕ5тw5я ЏбI•dc„Wg0ъn}UҐіц@Т2 #Ђ0‹iv›и…і€ђz/•^Ґњ…ЖѓOR¤Ы}IvV2¬jъ(ЗtB1)Є{чѕ™ђS‹№"BЕш·\ ih.ѓАЗРЛIXbЖ¶:нG»nбЂI“А ж•вFХ.ѓйф^aЈЭ?а>®~!k˜'Ю'фT[ЭЧўж‚93фЦfя ‘ЯH<®ПH»с>ЪlкNРуЦDHъеҐл„Х;ќ;ЪsЂg-Ђ@ъ, JЈИOџsэ~ЉЗSs^H ћ'"#tцю§мЊ»=«Щ^ ¤@'њфХW~ўAp'oTЌъ¦Ъ­{FЩ†ИМґ1ь¦Пс#'cЋЬ>„ѕкњЎ?ЭFЉЈ­йў…B хХL№М,и2~я т‰ЧЄп-sќ2`ъ aHQm:F^jЖЮбЈ&~°јщЖ*N‰Е«v+{sВеkД‚№$ёїўFђ~Ш’ '#kьЬО«Ns›эЩ— тDн9чPј»qhhБkҐ c tы¦ЇФ·±”бћF’Io4‰ЎM=SијgIЎuиџ`F=#˜ы}ЧZЮмi'‚cрЃuлП»І!Рк}+‹CZIџ7ёытЏNЕu ЪЕ¤IБМсe1ЈXTа ЁЌмxЩГCЫ·hЪбуcЦcю•џ”7ЅЋ ‡чlл?ыzЎiЏ‰®ЮКYДОЬд ©7Пжж:ЏEй>рkЄ0VЇєђxќ‘зОypтэ§Щmмј?kKдЎNGщ‹CќыО’­‹Е“¶хapмс{=жѕiУ1<њ6=ЦЛIрі˜ЄрOVЃ#о·WеЌ ШY=SX†Џ„C‹ЬЮўfц э–ЬxсЕl4в»[Qe1 hСX+ѓБ¦^ЙIё<Мя ЗР tzБџ<ЧyэаТµ9SBкФC=сЙC~Ш е.Хµ:Ѕ­>ЗџС;j¬Aхл%Хn¶»=qч@ЭjЃ§'їаJ¦МTё|УnжЂaТ$ъы~Ё·BїБUц°Ц9ҐШ‚dzu)®ѓѕїшm%§‡glw”n™бљX¶«ыLУ`ЂЮ№њ•¦§W`° г°ќ”ЦA”м¦ПHЃМёдџлў™gEu[П,“пнХ'°Ѕ%…о1ЅОpЈf?tоJ ЫШО–‘mГc…[\ЈZ°кyJЇхvСnг$Hl'Ї<+5[b]иvѕ’“ eЋfцАsРЃЮ Я^. &2 ыщЊыyOЭ/8¦•ЃЋЇ+µЈ$ x©+ЛхzЏsЛ§КCЖޘ'лУтџ^кeХ юf·ЂМAЙЭ+Ъ­sћу–зO nЋ±Дњыz,ћFU%HU&˜•h ЉЌЃ»fGRNйж“ҐУ{Nч“$ЗНАk}92‚·kѓ`Gn8н<сК®гsdрH01ђ>b{ {˜+ [°Жk—_ЙFЎ@KЂpkвпqV„~‘sрьрd‚ЏтЖyъ%П¦wK„тЏ˜`ЁИD‹‡! њђNТ}N#)xШ9nЖwµ@7™щyаы4 *\ ќО—°$sцR©\™xгtsйЯш Ќ3јА0`O<пА0»иm­~‚‰%М<ќЭx#iя ”KЋЗд“ґ= 1ъ!›Ks[. q“ё7=уEтҐF¶"hЎЬМю Nh ТЇ¦=О.~нЗ'i†ъ ;BдФњyp¶ицДц\“ЊюРЬгфRiy±;w`OCЯЧЋкЦ—4»wщЂ&8‚иn= _'”W!в­YUvQБН°‘aАрOС7У<џUЛ“5о_Н’mљ ГґЕЗВЄвн· иАs:Џђ:­•о…kBЦ«нйЌФЖрг.tСpvмЊ·ўеЛ\RЉТы)Ґ3­в±п¦жЫVњсиј§q€>‡Щќj»'ћ±Эrеў-»(dЇuАщ @Э9Ъsъ…”·©5ч`;iaЄЩqћѕoя ErеЋY$шїэ{i Ї.Z(ФРЏЮя ґў•Бs^А!РЧъyCПѕХЛ“JoKщя bХИчQЫUа™ћЧП°ЂЅЅ{©БТжд™Џ›УеаЇ«—eЙ.-r|X‡фWХ¬УYАТkZоeО0AЖGЩlu­IґнЙ¦v’d7€ q —-jЬEя кfЫ­љt˜з4‚чєЊїqи “+]t–d_§+—%Њ›A‹ц"z– M2ЬщњЪxя ЫlюҐвq–фч»еn ы ѕ®VЖыdЯfыU^ијQa†‚DёIй?Ф+©ЮViЫ\П™‘L˜ЮG9бrе—>Y«¦ {eHлU¬ЧББqp )=щДsЭYktг,˜€s1ш!rе,Ќ¶¬lЋй„› ъu#ґърбI$-іњЦђв2A=AМхш\№J]&gнXЖ›<ЅПіЯnЄцНsљ_QЫАџ(Ћ8МсћЛ—#)4ђqйY~ВВжѓ$'3"'феUYНcI‚v·‰Ђ sї ю.Kо Oч!{хЃ,Ъ ѓ€‡ЙЋЩц(ъ$ЊєLћ¤I‚гФя №r¦D”uця ЙLЪ_Я°‹ CiЙ'ЌІ»џtЫИ{љ2LЗ;±ъ®\¤Яµ—Г7@фЭкHюK—.Z)4яЩ
Devil Killer Is Here MiNi Shell

MiNi SheLL

Current Path : /home/serieaporm/www/wp-includes/

Linux webm074.cluster020.gra.hosting.ovh.net 4.14.218-ovh-vps-grsec-zfs-classid #1 SMP Mon Feb 1 17:25:57 CET 2021 x86_64
Upload File :
Current File : /home/serieaporm/www/wp-includes/class-wp-http-curl.php

<?php
/**
 * HTTP API: WP_Http_Curl class
 *
 * @package WordPress
 * @subpackage HTTP
 * @since 4.4.0
 */

/**
 * Core class used to integrate Curl as an HTTP transport.
 *
 * HTTP request method uses Curl extension to retrieve the url.
 *
 * Requires the Curl extension to be installed.
 *
 * @since 2.7.0
 */
class WP_Http_Curl {

	/**
	 * Temporary header storage for during requests.
	 *
	 * @since 3.2.0
	 * @var string
	 */
	private $headers = '';

	/**
	 * Temporary body storage for during requests.
	 *
	 * @since 3.6.0
	 * @var string
	 */
	private $body = '';

	/**
	 * The maximum amount of data to receive from the remote server.
	 *
	 * @since 3.6.0
	 * @var int|false
	 */
	private $max_body_length = false;

	/**
	 * The file resource used for streaming to file.
	 *
	 * @since 3.6.0
	 * @var resource|false
	 */
	private $stream_handle = false;

	/**
	 * The total bytes written in the current request.
	 *
	 * @since 4.1.0
	 * @var int
	 */
	private $bytes_written_total = 0;

	/**
	 * Send a HTTP request to a URI using cURL extension.
	 *
	 * @since 2.7.0
	 *
	 * @param string       $url  The request URL.
	 * @param string|array $args Optional. Override the defaults.
	 * @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'. A WP_Error instance upon error
	 */
	public function request( $url, $args = array() ) {
		$defaults = array(
			'method'      => 'GET',
			'timeout'     => 5,
			'redirection' => 5,
			'httpversion' => '1.0',
			'blocking'    => true,
			'headers'     => array(),
			'body'        => null,
			'cookies'     => array(),
		);

		$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-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 );
		$theHeaders          = WP_Http::processHeaders( $this->headers, $url );
		$theBody             = $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( $theBody ) && empty( $theHeaders['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'  => $theHeaders['headers'],
			'body'     => null,
			'response' => $theHeaders['response'],
			'cookies'  => $theHeaders['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( $theHeaders['headers'] ) ) {
			$theBody = WP_Http_Encoding::decompress( $theBody );
		}

		$response['body'] = $theBody;

		return $response;
	}

	/**
	 * Grabs the headers of the cURL request.
	 *
	 * Each header is sent individually to this callback, so we append 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, so we append 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 );
	}
}

Creat By MiNi SheLL
Email: jattceo@gmail.com