I can't seem to find any reference to the LH command this cURL command uses -- so I'm not entirely certain how to translate it to php
$ curl -LH "Accept: text/bibliography; style=mla; locale=fr-FR" http://dx.doi.org/10.1038/nrd842
I can't seem to find any reference to the LH command this cURL command uses -- so I'm not entirely certain how to translate it to php
$ curl -LH "Accept: text/bibliography; style=mla; locale=fr-FR" http://dx.doi.org/10.1038/nrd842
curl -LH
L
はとの 2 つのフラグだけH
です。
参照: http://curl.haxx.se/docs/manpage.html
-L
= 場所
-H
= ヘッダー
コードでは、フラグを-HL
スワップするか、引数値をスワップする必要があります。