Mais
Como enviar um cabeçalho usando uma requisição HTTP através de uma chamada de encaracolar?
Eu desejo enviar um cabeçalho para o meu servidor Apache em uma caixa Linux. Como posso conseguir isto através de uma chamada de encaracolar?
1320
3
Man Curl':
Exemplo: #
Você pode ver a requisição que o encaracolamento enviou adicionando a opção `-v'.
Em PHP:
ou você pode definir múltiplos:
Use
-H ou --header
.Página do homem: http://curl.haxx.se/docs/manpage.html#-H