Hoe stuur ik een header met een HTTP verzoek via een curl oproep?
Ik wil een header sturen naar mijn Apache server op een Linux box. Hoe kan ik dit bereiken via een curl call?
1320
3
Ik wil een header sturen naar mijn Apache server op een Linux box. Hoe kan ik dit bereiken via een curl call?
man curl
:Example:
Je kunt het verzoek zien dat curl stuurde door de
-v
optie toe te voegen.In PHP:
of je kunt er meerdere instellen:
Gebruik
-H of --header
.Man pagina: http://curl.haxx.se/docs/manpage.html#-H