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 -LHLはとの 2 つのフラグだけHです。
参照: http://curl.haxx.se/docs/manpage.html
-L= 場所
-H= ヘッダー
コードでは、フラグを-HLスワップするか、引数値をスワップする必要があります。