PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
The reason why I do not wish to use header() directly is because I don't want the user to be redirected to the page. I have checked through curl on the php site but can't seem to find any examples of sending this type of header strings. What curl options should I set?
curl is not supposed to do this type of functionality. Headers are returned by server on user request. cURL is used to execute on the server to connect and communicate with another servers through different protocols, so cURL could be considered as "client", but only "server" can return headers.