RE: applicationontent-Type?

2001-01-26 Thread Rob Bloodgood

> > I've been getting these occassional errors from libapreq, 1 every couple
> > days:
> >
> > [Thu Jan 25 15:54:33 2001] [error] [client 64.12.102.22] [libapreq]
> > unknown content-type: `applicationontent-Type:
> application/x-www-form-urlencoded\'

Alright, I'm gonna toss my $.02 into this:
This *really* looks like bad string handling.  Specifically, the kind of
annoyance people can see when using strncat(3) and forgetting what end of
string was agreed on for the local project.

Now, I don't pretend to have that much insider info, but I recently had to
code an app that had to send different reponses to AOL because AOL's
instantiation of the Explorer object is deliberately broken.  In doing so, I
found that all AOL requests are made using an HTTP Proxy.

   if (
$r->header_in('Via') =~ m!Traffic-Server!
and
$r->header_in('User-Agent') =~ /AOL \d(\.d)?/
   )

So presumably something that's handling /proxy reponses/ is hiccuping.

L8r
Rob




Re: applicationontent-Type?

2001-01-26 Thread Doug MacEachern

On Thu, 25 Jan 2001 [EMAIL PROTECTED] wrote:

> I've been getting these occassional errors from libapreq, 1 every couple
> days:
> 
> [Thu Jan 25 15:54:33 2001] [error] [client 64.12.102.22] [libapreq]
> unknown content-type: `applicationontent-Type: application/x-www-form-urlencoded\'
> 
> It's always an AOL user agent, but not always the same one.  I added
> Apache::DumpHeaders today and caught one after a couple hours:
> 
> POST /poll/iIDEre/results HTTP/1.0
> Accept: */*
> Accept-Encoding: gzip, deflate
> Accept-Language: en-us
> Content-Length: 20
> Content-Type: applicationontent-Type: application/x-www-form-urlencoded

yikes.

you could work around this like so (untested):

sub AOL::fixup {
my $r = shift;
my $ct = $r->header_in('content-type');
if ($ct =~ s/^\S+:\s*//) {
$r->header_in('content-type', $ct);
}
0;
}

PerlFixupHandler AOL::fixup

libapreq could probably deal with this internally, maybe by assuming
content-type is DEFAULT_ENCTYPE if it is unable to find an exact match.





applicationontent-Type?

2001-01-25 Thread dsh

I've been getting these occassional errors from libapreq, 1 every couple
days:

[Thu Jan 25 15:54:33 2001] [error] [client 64.12.102.22] [libapreq]
unknown content-type: `applicationontent-Type: application/x-www-form-urlencoded\'

It's always an AOL user agent, but not always the same one.  I added
Apache::DumpHeaders today and caught one after a couple hours:

POST /poll/iIDEre/results HTTP/1.0
Accept: */*
Accept-Encoding: gzip, deflate
Accept-Language: en-us
Content-Length: 20
Content-Type: applicationontent-Type: application/x-www-form-urlencoded
Host: localhost:81
Pragma: no-cache
User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; AOL 6.0; Windows
98; DigExt)
X-Forwarded-For: 64.12.102.22

HTTP/1.0 200 OK
Last-Modified: Thu, 18 Jan 2001 21:54:34 GMT
Connection: close
Content-Type: text/html; charset=ISO-8859-1

Has anyone else seen this?

mod_perl-1.24_01, apache_1.3.14, perl, v5.6.0 built for i686-linux

Thanks,
Scott

--
Scott Holdren
[EMAIL PROTECTED]