Re: [PHP] Show the entire browser request

2009-06-10 Thread Robin Vickery
2009/6/10 Robin Vickery > > > 2009/6/10 Dotan Cohen > >> > Just checked your site in Elinks (works like Lynx) and I'm getting the >> > headers come back to me. I'm assuming you changed your site code before >> > me sending this and after you sent the original message? >> > >> >> The individual h

Re: [PHP] Show the entire browser request

2009-06-10 Thread Robin Vickery
2009/6/10 Dotan Cohen > > Just checked your site in Elinks (works like Lynx) and I'm getting the > > headers come back to me. I'm assuming you changed your site code before > > me sending this and after you sent the original message? > > > > The individual headers are as they always were. It's th

Re: [PHP] Show the entire browser request

2009-06-09 Thread Dotan Cohen
> Just checked your site in Elinks (works like Lynx) and I'm getting the > headers come back to me. I'm assuming you changed your site code before > me sending this and after you sent the original message? > The individual headers are as they always were. It's the entire request verbatim (valid or

Re: [PHP] Show the entire browser request

2009-06-09 Thread Ashley Sheridan
On Tue, 2009-06-09 at 17:58 +0300, Dotan Cohen wrote: > > There are no risks that I can see in the code. You're welcome to use > > it, and a link to http://stut.net/ is always appreciated ;-) > > > > In August when I will have more time to devote to it I will put it on > the site. With link, and i

Re: [PHP] Show the entire browser request

2009-06-09 Thread Dotan Cohen
> There are no risks that I can see in the code. You're welcome to use > it, and a link to http://stut.net/ is always appreciated ;-) > In August when I will have more time to devote to it I will put it on the site. With link, and it is _me_ who appreciates _your_ help. Thanks! Dotan Cohen http:

Re: [PHP] Show the entire browser request

2009-06-09 Thread Stuart
2009/6/9 Dotan Cohen : > Why should this be run on port 8000? Is there a security implication > of running this on port 80? Would it be unwise to use this as a public > service, for instance? You can run it on port 80 but you'll need to make sure there's not another web server running on that port

Re: [PHP] Show the entire browser request

2009-06-09 Thread Dotan Cohen
Why should this be run on port 8000? Is there a security implication of running this on port 80? Would it be unwise to use this as a public service, for instance? I was considering adding the tool to http://simplesniff, which is why I ask. Of course, that would only be with your permission, and it

Re: [PHP] Show the entire browser request

2009-06-09 Thread Dotan Cohen
> Run this on a command line and hit the IP on port 8000. All it does is > read the request and send it back as the response. It ignores POST > bodies but it would be pretty simple to modify it so it echo's those > back too. > >    http://dev.stut.net/php/httpsrv.phps > Stuart, that is quite a bit

Re: [PHP] Show the entire browser request

2009-06-09 Thread Stuart
2009/6/8 Dotan Cohen : >> If its the request from the browser, why not just fire up a packet sniffer >> and get it that way? Unless it's using SSL/TLS/VPN/something that would >> encrypt it, you should be able to see the request in clear text. >> > > The browser is running on a Symbian cellphone.

Re: [PHP] Show the entire browser request

2009-06-08 Thread Dotan Cohen
> If its the request from the browser, why not just fire up a packet sniffer > and get it that way? Unless it's using SSL/TLS/VPN/something that would > encrypt it, you should be able to see the request in clear text. > The browser is running on a Symbian cellphone. -- Dotan Cohen http://what-i

Re: [PHP] Show the entire browser request

2009-06-08 Thread Andrew Ballard
On Mon, Jun 8, 2009 at 4:40 PM, Dotan Cohen wrote: >> This should do it, I believe: >> >> > >> echo $_SERVER['REQUEST_METHOD'], ' ', $_SERVER['REQUEST_URI'], ' ', >> $_SERVER['SERVER_PROTOCOL']; >> >> ?> >> > > Thanks, Andrew, I'm sure that works for correctly-formed requests. > However, I am tryin

Re: [PHP] Show the entire browser request

2009-06-08 Thread Matty Sarro
If its the request from the browser, why not just fire up a packet sniffer and get it that way? Unless it's using SSL/TLS/VPN/something that would encrypt it, you should be able to see the request in clear text. On Mon, Jun 8, 2009 at 4:40 PM, Dotan Cohen wrote: > > This should do it, I believe:

Re: [PHP] Show the entire browser request

2009-06-08 Thread Dotan Cohen
> This should do it, I believe: > > > echo $_SERVER['REQUEST_METHOD'], ' ', $_SERVER['REQUEST_URI'], ' ', > $_SERVER['SERVER_PROTOCOL']; > > ?> > Thanks, Andrew, I'm sure that works for correctly-formed requests. However, I am trying to diagnose a web browser that is _not_ correctly forming it's

Re: [PHP] Show the entire browser request

2009-06-08 Thread Andrew Ballard
On Mon, Jun 8, 2009 at 2:40 PM, Dotan Cohen wrote: >>    Roger that.  Check out getallheaders() then: >> >>        http://php.net/getallheaders >> > > Well, that seems to be partway there, but it doesn't include the GET request. > > -- > Dotan Cohen > > http://what-is-what.com > http://gibberish.co

Re: [PHP] Show the entire browser request

2009-06-08 Thread Dotan Cohen
>    Roger that.  Check out getallheaders() then: > >        http://php.net/getallheaders > Well, that seems to be partway there, but it doesn't include the GET request. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Show the entire browser request

2009-06-08 Thread Daniel Brown
On Mon, Jun 8, 2009 at 12:17, Dotan Cohen wrote: > > Thanks, Daniel, but I am trying to help someone who is writing a > text-based web browser but gets "Bad Request" messages from some > websites. As he is able to visit http://simplesniff.com (my site) I > figured that it would help if I could just

Re: [PHP] Show the entire browser request

2009-06-08 Thread Daniel Brown
On Mon, Jun 8, 2009 at 12:07, Dotan Cohen wrote: > I need to diagnose a web browser problem, and I'd like PHP to return a > page that shows the entire browser request, exactly as it was sent. It > would naturally contain all the data in the HTTP Headers Information > from phpinfo() but formatted ex

Re: [PHP] Show the entire browser request

2009-06-08 Thread Richard Heyes
Hi, > I need to diagnose a web browser problem, and I'd like PHP to return a > page that shows the entire browser request, exactly as it was sent. It > would naturally contain all the data in the HTTP Headers Information > from phpinfo() but formatted exactly as the browser sent it. Sounds like w

Re: [PHP] Show the entire browser request

2009-06-08 Thread Dotan Cohen
>> I need to diagnose a web browser problem, and I'd like PHP to return a >> page that shows the entire browser request, exactly as it was sent. It >> would naturally contain all the data in the HTTP Headers Information >> from phpinfo() but formatted exactly as the browser sent it. > >    Dependin