httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jake Milnes <jacob_mil...@yahoo.com>
Subject [users@httpd] POST using Content Type of text - 501 Method Not Implemented
Date Fri, 25 Jul 2008 15:45:18 GMT
Hello,

We have recently upgraded from apache 1.3.35 to 2.2.0.  2.2.0 is a great improvement and long
overdue for us.  We have also switched from a shared host provider to our own hosted server
at the same time.  There is one sticky point that I am trying to figure out if we can work
around it.

We have a client application that is deployed to many (several hundred) users across the internet.
 This client application communicates with our apache server occasionally to see if there
are new versions of the client to download.  The client performs a POST of the current version
to the server and the server responds back with a yes/no and an optional download URI.  The
POST is done with a content type of "text".  It works with our installation of 1.3.35.  It
does not work with our installation of 2.2.0.  The error response is "501 Method Not Implemented".
 If I update the client to use a content type of "text/xml" then it works great with our installation
of 2.2.0.  I don't have full access to the 1.3.35 apache installation to look at it and browse
its configuration.

We POST to a php page, but I get the same behavior posting to cgi or html.  Below is an example
from our 2.2.0 installation.  The first one works and the second one doesn't...the only difference
is the content type.  It would be nice if we could simply update the client, but we don't
control when our client applications get upgraded (1.  we don't force updates and 2.  the
update server is broken, nuts!).  Downgrading to our old server is also a tough pill to swallow.
 Does anyone have any pointers on how I might go about configuring our 2.2.0 installation
to get past this problem?

Thanks for the help,

Jake


http://example.com/ad.php

POST /ad.php HTTP/1.1
Host: example.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: text/xml; charset=UTF-8
Content-Length: 48
Cookie: PHPSESSID=v08hp3b83sku8m0j1tja52k626
Pragma: no-cache
Cache-Control: no-cache
7a7dcf88f1e2d51573de368c379a833bbd4d32f70a0afc9f

HTTP/1.x 200 OK
Date: Fri, 25 Jul 2008 14:26:37 GMT
Server: Apache/2.2.0 (Fedora)
X-Powered-By: PHP/5.2.6
Content-Length: 848
Connection: close
Content-Type: text/html; charset=UTF-8
----------------------------------------------------------
http://example.com/ad.php

POST /ad.php HTTP/1.1
Host: example.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: text; charset=UTF-8
Content-Length: 48
Cookie: PHPSESSID=v08hp3b83sku8m0j1tja52k626
Pragma: no-cache
Cache-Control: no-cache
7a7dcf88f1e2d51573de368c379a833bbd4d32f70a0afc9f

HTTP/1.x 501 Method Not Implemented
Date: Fri, 25 Jul 2008 14:27:06 GMT
Server: Apache/2.2.0 (Fedora)
Allow: TRACE
Content-Length: 290
Connection: close
Content-Type: text/html; charset=iso-8859-1
----------------------------------------------------------

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message