Downloads abien, proxies abien, curl command baako
Kyerɛ proxies ne output files a ɛsono wɔn mu denam curl transfer boundary so.
Sɛ wode URL mmienu to --proxy akyi a, wɔn nyinaa bɛfa proxy baako no ara mu. Sɛ download biara hia kwan a ɛyɛ ne de a, ma curl transfer boundary:
curl --proxy http://203.0.113.10:8080 \
--output first.html https://example.com/ \
--next \
--proxy http://203.0.113.20:8080 \
--output second.html https://example.org/
Proxy address mmienu no yɛ placeholders; paw HTTP endpoints fi wo service anaa HTTP proxy list mu. --next fi transfer foforo ase a local options foforo wom. Kyerɛ proxy a ɛto so mmienu no pefee. Option a wode maa boundary no anim no, ebia ɛsɛ sɛ wode ma bio akyiri.
Eyi yɛ sequential example. Ɛma destination, output file ne proxy ntam nkitahodi yɛ mmerɛ sɛ wɔbɛhwɛ. curl taa parallel transfers nso, nanso parallelism sesa scheduling; ɛnkyerɛ proxy a URL biara bedi so ankasa.
Hwɛ yiye wɔ text file a pairs wom ho
Line a ɛwɔ proxy-address destination-url yɛ wo application format. curl nni adwene sɛ ɛbɛhwehwɛ columns no ase afi text biara mu. Shell loop, curl configuration a wɔayɛ, anaa dispatcher ketewa foforo bɛdan record biara ama options a wɔakyerɛ pefee.
Ma arguments nnyɛ nsɛm a wɔabɔ mu. Sɛ wode URLs a wonni ahotoso bom yɛ command a, spaces anaa shell characters betumi asesa ne nkyerɛase. Adwuma a wɔyɛ mpɛn pii no, curl configuration-file syntax a wɔakyerɛw ho asɛm no yɛ mmerɛ sɛ wɔbɛhwɛ sen string tenten a wɔaboa ano wɔ nsa so.
Kyerɛ transfer biara nea efii mu bae wɔ ɔfa no mu. Download a edi kan a ɛkɔ yiye no nkyerɛ route anaa response a ɛto so mmienu no. Ma timeouts ne failure handling nkɔ transfer a ɛhia wɔn no ho, na hwɛ boundary no sɛ setting bi ayera sɛnea ɛte a.