# Finding out content type before logging process:

**URL:** <https://www.ruby-forum.com/t/finding-out-content-type-before-logging-process/218127>\
**Category:** NGINX\
**Created:** [March 22, 2012, 4:17am UTC](https://www.ruby-forum.com/t/finding-out-content-type-before-logging-process/218127 "2012-03-22T04:17:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [March 22, 2012, 4:17am UTC](https://www.ruby-forum.com/t/finding-out-content-type-before-logging-process/218127/1 "2012-03-22T04:17:42Z")

</div>

Hey guys!

I need to know if there’s a way to find out the content type of content  
going through the proxy before the logging process.

I can use $upstream\_http\_content\_type for logging the information, but I  
need to access the value before outputting the page to the browser. The  
http\_content\_type and send\_http\_content\_type variables mentioned on the  
Proxy page are empty.

Thanks in advance,

Engin
