Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.www.php > #21568
| From | Sandro kensan <kensan@kensan.it> |
|---|---|
| Newsgroups | it.comp.www.php |
| Subject | Re: curl amazon.de da errore invece di http_status 200 |
| Date | 2017-03-30 23:54 +0200 |
| Message-ID | <ek5d5jFtsvoU1@mid.individual.net> (permalink) |
| References | (3 earlier) <eis5dcljg2r5701ccvvemuqt9c3sb9omct@L.Serni> <ek1qo9F9vneU1@mid.individual.net> <jr7odcd2fjd3686slho01co5edk98sich7@L.Serni> <ek4e2hFqc1uU1@mid.individual.net> <7diqdcl9v6qrfs5urf07t70b938s4d1urr@L.Serni> |
On 30/03/2017 20:10, Leonardo Serni wrote:
> Se proprio, metti un controllo sul codice di ritorno; di norma vai di HEAD, se
> fallisce [opzionalmente: ed è di Amazon], riprovi con GET, se poi non ce la fa
> neanche così lo dai per stecchito.
È lo stesso di quello che ho pensato:
$tmp = parse_url($link);
if (strpos($tmp["host"], "amazon") !== false){
curl_setopt($handle, CURLOPT_NOBODY, FALSE);
echo "AMAZON<br>";
}else{
curl_setopt($handle, CURLOPT_NOBODY, TRUE);
}
Grazie :)
--
Sandro kensan www.kensan.it & www.qiqi.it geek site
Saluto gli agenti della NSA - Hello NSA - www.nsa.gov
Back to it.comp.www.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
curl amazon.de da errore invece di http_status 200 Sandro kensan <kensan@kensan.it> - 2017-03-21 23:30 +0100
Re: curl amazon.de da errore invece di http_status 200 Leonardo Serni <lserni@gmail.com> - 2017-03-22 00:17 +0100
Re: curl amazon.de da errore invece di http_status 200 Sandro kensan <kensan@kensan.it> - 2017-03-22 13:14 +0100
Re: curl amazon.de da errore invece di http_status 200 Leonardo Serni <lserni@gmail.com> - 2017-03-22 22:53 +0100
Re: curl amazon.de da errore invece di http_status 200 Sandro kensan <kensan@kensan.it> - 2017-03-23 10:17 +0100
Re: curl amazon.de da errore invece di http_status 200 Sandro kensan <kensan@kensan.it> - 2017-03-29 15:22 +0200
Re: curl amazon.de da errore invece di http_status 200 fmigliori <fmigliori@gmail.com> - 2017-03-29 09:39 -0700
Re: curl amazon.de da errore invece di http_status 200 Sandro kensan <kensan@kensan.it> - 2017-03-29 20:17 +0200
Re: curl amazon.de da errore invece di http_status 200 Sandro kensan <kensan@kensan.it> - 2017-03-29 21:59 +0200
Re: curl amazon.de da errore invece di http_status 200 fmigliori <fmigliori@gmail.com> - 2017-03-29 13:18 -0700
Re: curl amazon.de da errore invece di http_status 200 fmassei@gmail.com - 2017-03-29 14:13 -0700
Re: curl amazon.de da errore invece di http_status 200 Leonardo Serni <lserni@gmail.com> - 2017-03-29 23:02 +0200
Re: curl amazon.de da errore invece di http_status 200 Sandro kensan <kensan@kensan.it> - 2017-03-30 15:04 +0200
Re: curl amazon.de da errore invece di http_status 200 Leonardo Serni <lserni@gmail.com> - 2017-03-30 20:10 +0200
Re: curl amazon.de da errore invece di http_status 200 Sandro kensan <kensan@kensan.it> - 2017-03-30 23:54 +0200
Re: curl amazon.de da errore invece di http_status 200 fmassei@gmail.com - 2017-03-21 16:31 -0700
Re: curl amazon.de da errore invece di http_status 200 Sandro kensan <kensan@kensan.it> - 2017-03-22 13:21 +0100
Re: curl amazon.de da errore invece di http_status 200 fmassei@gmail.com - 2017-03-22 07:33 -0700
Re: curl amazon.de da errore invece di http_status 200 Sandro kensan <kensan@kensan.it> - 2017-03-23 10:18 +0100
csiph-web