FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Apache and php to show http request headers.
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Apache and php to show http request headers. [message #178510 is a reply to message #178504] Mon, 25 June 2012 19:25 Go to previous messageGo to previous message
M. Strobel is currently offline  M. Strobel
Messages: 386
Registered: December 2011
Karma:
Senior Member
Am 25.06.2012 19:55, schrieb The Natural Philosopher:
> M. Strobel wrote:
>> Am 25.06.2012 16:44, schrieb Jerry Stuckle:
>>> On 6/25/2012 10:42 AM, Tony Mountifield wrote:
>>>> In article <js9pqt$1lm$1(at)dont-email(dot)me>,
>>>> Jerry Stuckle <jstucklex(at)attglobal(dot)net> wrote:
>>>> > On 6/25/2012 9:36 AM, Tony Mountifield wrote:
>>>> >> In article <klslb9-ogk(dot)ln1(at)luuk(dot)invalid(dot)lan>, Luuk <luuk(at)invalid(dot)lan> wrote:
>>>> >>> On 25-06-2012 12:15, brumik wrote:
>>>> >>>> I need to test various http requests from an application and am using
>>>> >>>> Apache/PHP on ubuntu to display the http request headers. The
>>>> >>>> application proxy forwards http requests to the apache server's IP
>>>> >>>> address like as follows:
>>>> >>>>
---cut---

>>>> >>>> How can I get it to show the 'original' URI requested? is this
>>>> >>>> something that can be done in PHP or is it apache specific?
>>>> >>>>
>>>> >>> Its apache, because it is redirecting, so PHP does only know about the
>>>> >>> redirected request, and does have no knowledge of how this request
>>>> >>> reached PHP.
>>>> >> You could try the Proxy flag in the RewriteRule:
>>>> >>
>>>> >> RewriteRule $ http://localhost/index.php [P,L]
>>>> > He can try a lot of things which won't work.
>>>> Well, yes, but I didn't think my suggestion was one of them. If you
>>>> think it is, I would like to know why, so that I would know for the
>>>> future, rather than just be the target of a bit of sarcasm. You could
>>>> try something like "That won't work because...." (if applicable).
>>>>
>>>> The OP's original rule obviously wouldn't work, because it tells the
>>>> client browser to generate a completely fresh request with the new
>>>> location. In contrast, the Proxy flag in RewriteRule is supposed to
>>>> make Apache proxy the original request to the new location (even to
>>>> itself if necessary). So the request's original headers should still
>>>> be present, with perhaps one or more proxy headers.
>>>>
>>>> Cheers
>>>> Tony
>>>>
>>> It's off topic in this newsgroup. If you want to know why, try an appropriate
>>> newsgroup.
>>>
>>
>> Truth is never off topic.
>>
> Jerry is always off topic then..

Dead on target.

And he is putting more effort into telling everyone what is off topic than would be
required to answer the question.

/Str.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Simulating a Form Method=Post submission in PHP
Next Topic: File upload on iOS
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 01 02:52:59 GMT 2024

Total time taken to generate the page: 0.04783 seconds