|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Getting back HTTP as-is like plain text sometimesFor some reason I'm not getting any hits on my google searches for
this, so I'm trying this mailing list. The issue I'm running into is that sometimes I get back the HTTP response as plain text, instead of the *content* of the HTTP response as the correct content type. Many of my requests are served through a reverse proxy to a glassfish server, but I've also seen this happen for applications served directly by apache mod_php. Here's an example of something that was returned to an AJAX query : HTTP/1.1 200 OK Date: Mon, 01 Sep 2008 21:52:55 GMT Server: Sun Java System Application Server 9.1 X-Powered-By: Servlet/2.5 Content-Disposition: attachment Content-Type: application/json;charset=utf-8 Content-Length: 55 Keep-Alive: timeout=15, max=37 Connection: Keep-Alive //OK[1,["https://www.clarityaccounting.com/login"],0,3] This example was served by glassfish, but I have also seen this with PHP scripts returning something similar. It doesn't happen consistently, nor does it seem to be targetting any particular content-type or URL. Has anyone seen this before? Any ideas what might cause it? -- Dobes Vandermeer Director, Habitsoft Inc. dobesv@... 778-891-2922 --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@... " from the digest: users-digest-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
|
|
|
Re: Getting back HTTP as-is like plain text sometimesOn Thu, Sep 4, 2008 at 9:56 AM, Dragon <dragon@...> wrote:
> Dobes Vandermeer did speak thusly: >> >> For some reason I'm not getting any hits on my google searches for >> this, so I'm trying this mailing list. >> >> The issue I'm running into is that sometimes I get back the HTTP >> response as plain text, instead of the *content* of the HTTP response >> as the correct content type. >> >> Has anyone seen this before? Any ideas what might cause it? >> > > Does the browser you are using know how to handle the content type? It seems to be happening for pretty standard content-types, such as html pages on the site, so I seem like this is the issue. It also happens in different browsers. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@... " from the digest: users-digest-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
|
|
|
Re: Getting back HTTP as-is like plain text sometimesOn Thu, Sep 4, 2008 at 10:09 AM, Dragon <dragon@...> wrote:
> Dobes Vandermeer did speak thusly: >> >> On Thu, Sep 4, 2008 at 9:56 AM, Dragon <dragon@...> wrote: >> > Dobes Vandermeer did speak thusly: >> >> >> >> For some reason I'm not getting any hits on my google searches for >> >> this, so I'm trying this mailing list. >> >> >> >> The issue I'm running into is that sometimes I get back the HTTP >> >> response as plain text, instead of the *content* of the HTTP response >> >> as the correct content type. >> >> >> >> Has anyone seen this before? Any ideas what might cause it? >> >> >> > >> > Does the browser you are using know how to handle the content type? >> >> It seems to be happening for pretty standard content-types, such as >> html pages on the site, so I seem like this is the issue. >> >> It also happens in different browsers. > > OK, so then are you certain that the content type header is always being > sent? Yes, as far as I can tell it is always included in the HTTP dump that I get. Besides, which content-type includes the HTTP response headers in it? > I know you sent a list of headers in your original post and it was there, > but was that for a failed request or a successful one? It was a failed request - the only reason I had a copy of the headers was that I saw them in the browser window. > Other than that, I am at a loss as to what might be happening. Me too :-( I wish I could reproduce this more frequently so that I could file a bug or something -- Dobes Vandermeer Director, Habitsoft Inc. dobesv@... 778-891-2922 --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@... " from the digest: users-digest-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
|
|
|
Re: Getting back HTTP as-is like plain text sometimesOn Fri, Sep 5, 2008 at 10:32 AM, Dragon <dragon@...> wrote:
> Dobes Vandermeer did speak thusly: >> >> > >> > OK, so then are you certain that the content type header is always being >> > sent? >> >> Yes, as far as I can tell it is always included in the HTTP dump that >> I get. Besides, which content-type includes the HTTP response headers >> in it? > > OK, after scanning through it pretty quickly, I have a suspicion what may be > happening. I suspect a blank line is getting > to the browser before the end of the headers and definitely before the > content type header. In such a case, the browser is likely to default to > plain text. Yeah, that seems possible. What I wonder about is that it happens so infrequently - I haven't seen it for a few days now. I'll keep an eye out for it and try and devise a way to reproduce it more reliably. I was hoping someone on the list had previously had this problem and found a solution. >> > Other than that, I am at a loss as to what might be happening. >> >> Me too :-( I wish I could reproduce this more frequently so that I >> could file a bug or something > > Well, we need a real good look at the HTTP transaction to determine that. Thanks for your help. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@... " from the digest: users-digest-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free Forum Powered by Nabble | Forum Help |