php - nginx headers set via curl -



php - nginx headers set via curl -

i seem have nail brick wall in dealing headers. place can think problem is, nginx configuration.

i making request via curl on command line:

curl -h "user-id: 1" -h "user-token: $2y$10$vgxt0cfs7uozhyqouh9caenshb2kohs3vhyl1l8w01qzd2kikfogg" http://dev.api/account

using http scoop can see request headers:

user-agent → curl/7.30.0 user-session → $2y$10$vgxt0cfs7uozhyqouh9caenshb2kohs3vhyl1l8w01qzd2kikfogg user-id → 1 host → dev.api take → */*

then response is

cache-control → no-cache connection → keep-alive content-type → text/html; charset=utf-8 date → fri, 20 jun 2014 03:11:02 gmt server → nginx/1.6.0 transfer-encoding → chunked x-frame-options → sameorigin x-powered-by → php/5.4.28

is there in nginx prevent headers request passed response?

i don`t know mechanism header, special headers add together directives location or server context:

add_header user-session $http_user_session add_header user-id $http_user_id add_header host %http_host

php curl nginx

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -