Welcome! Log In Create A New Profile

Advanced

Re: why two different responses?

Francis Daly
October 26, 2012 04:14AM
On Thu, Oct 25, 2012 at 11:03:57PM -0400, AJ Weber wrote:

Hi there,

> One of these requests is sent by my program. One is sent by curl (it's
> easy to tell which). They are identical as far as I can tell.

What is the full request sent in each case?

"curl -v" to show what it sends. Or "tcpdump" on the nginx server to
see what it receives.

> However, the curl request returns the expected result (204) from my
> servlet. The program keeps getting this 302 returned with some generic
> "302 Found" html from nginx.

If you see different headers sent from your code and curl, perhaps try
adding or removing one at a time to see if there is one that matters.

> My eyes are blurry from staring at it. Can anyone tell me why my test
> with curl works, but the program sending the same request does not???

Purely on the lines you have shown: does your code or config do anything
based on $http_user_agent or the equivalent?

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

why two different responses?

aweber October 25, 2012 11:06PM

Re: why two different responses?

Francis Daly October 26, 2012 04:14AM

Re: why two different responses?

Igor Sysoev October 26, 2012 04:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 150
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready