Welcome! Log In Create A New Profile

Advanced

Re: Override Content-Type header with proxied requests

August 07, 2014 02:17PM
Hi Wandenberg,

As you suggested I added "proxy_hide_header Content-Type;" in location / {} directive and I am getting 200 but how would I check what is the Content-Type. I usually check with curl command. But with curl command I don't find the Content-Type since it is hidden now. Is there any other way to confirm the changes?

[root@LOCALHOST ~]# curl -v http://www.aaa.com/aaa/bbb/ccc/ddd/eee/fff.json
* Hostname was NOT found in DNS cache
* Trying 5.5.5.5...
* Connected to www.aaa.com (5.5.5.5) port 80 (#0)
> GET /content/unittests/maja-test/essdev-2668/test2.json HTTP/1.1
> User-Agent: curl/7.36.0
> Host: www.aaa.com
> Accept: */*
>
< HTTP/1.1 200 OK
* Server nginx is not blacklisted
< Server: nginx
< Date: Thu, 07 Aug 2014 18:06:53 GMT
< Content-Length: 603
< Connection: keep-alive
< Keep-Alive: timeout=5
< x-amz-id-2: 6h0Xzm+Sa6+C7fPeocKD0iNJIRhm6thHqa1GJB+aOrOKwrT8T6YL2Lp2M74UlD39
< x-amz-request-id: 62A0E211E69B6F9B
< x-amz-meta-md5-hash: ab9b7b2c58d3a481e172aea95b1e87a0
< Last-Modified: Fri, 25 Jul 2014 13:18:14 GMT
< ETag: "ab9b7b2c58d3a481e172aea95b1e87a0"
< Accept-Ranges: bytes
< Expires: Fri, 08 Aug 2014 18:06:53 GMT
<
{
JSON CONTENTS
* Connection #0 to host www.aaa.com left intact
}

--Manish
Subject Author Posted

Override Content-Type header with proxied requests

andrea.mandolo May 23, 2013 11:07AM

Re: Override Content-Type header with proxied requests

Jonathan Matthews May 23, 2013 11:12AM

Re: Override Content-Type header with proxied requests

António P. P. Almeida May 23, 2013 11:26AM

Re: Override Content-Type header with proxied requests

António P. P. Almeida May 23, 2013 11:34AM

Re: Override Content-Type header with proxied requests

manish-ezest August 06, 2014 08:18AM

Re: Override Content-Type header with proxied requests

andrea.mandolo May 24, 2013 04:58AM

Re: Override Content-Type header with proxied requests

wandenberg August 07, 2014 12:12AM

Re: Override Content-Type header with proxied requests

manish-ezest August 07, 2014 11:57AM

Re: Override Content-Type header with proxied requests

wandenberg August 07, 2014 01:58PM

Re: Override Content-Type header with proxied requests

manish-ezest August 07, 2014 02:17PM

Re: Override Content-Type header with proxied requests

manish-ezest August 07, 2014 02:30PM

Re: Override Content-Type header with proxied requests

manish-ezest August 08, 2014 09:23AM

Re: Override Content-Type header with proxied requests

wandenberg August 08, 2014 11:44AM

Re: Override Content-Type header with proxied requests

manish-ezest August 08, 2014 10:34PM

Re: Override Content-Type header with proxied requests

manish-ezest August 13, 2014 06:18AM

Re: Override Content-Type header with proxied requests

flygoast August 09, 2014 11:36PM

Re: Override Content-Type header with proxied requests

Pavel Vasev May 24, 2015 07:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 67
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready