Nikeza i-API yomhlinzeki we-proxy indlela ezimele yokubuyisela
Khetha ukufinyelela okuqondile, i-proxy yokuphatha ezinzile, noma idatha ye-cache evunyelwe futhi esebenzisekayo ngaphambi kokuthembela kumhlinzeki ukuthi athathe indawo ye-proxy efile.
Ukuthola okunye esikhundleni nge-proxy efile ethathelwa indawo kubangela futhi ukwehluleka okufanayo. I-API yomhlinzeki idinga indlela esebenzisekayo ngokuzimela.
- Ukuze uthole ukufinyelela okuqondile okuvunyelwe, sebenzisa isibambo se-cURL esihlukile esine-
CURLOPT_PROXYengenalutho ukuze uvale umzila we-proxy ozuzwe njengefa. - Kuma-proxy okuphatha ezinzile, lungiselela i-endpoint yayo kanye nenqubomgomo yokudlula ehlosiwe esibambeni somhlinzeki.
- Uma kusetshenziswa i-cache evunyelwe, kufanele ibe ne-endpoint esebenzisekayo yalokhu kubuyisela.
Gcina isibambo somhlinzeki sihlukile kwisibambo sokulanda indawo okuyiwa kuyo. Qinisekisa isimo somhlinzeki kanye ne-endpoint ayibuyisayo ngaphambi kokushintsha indlela yokulanda. Impendulo engenalutho ingaba ukwehluleka kokuqinisekisa, isabelo noma isevisi yomhlinzeki, hhayi impilo ye-proxy.
Uma kungekho ndlela ezimele noma i-cache esebenzisekayo, bika lokho kwehluleka kokuqala. Ukukhetha «ngaphandle kwe-proxy» akukwazi ukudala ukufinyelela okuqondile kunethiwekhi engakuvumeli lokho.