[mod_python] Sending text/xml in a POST request gives "501 Method not implemented"

Gambit gambit at alpenjodel.de
Thu May 31 14:10:19 EDT 2007


Hello,

I'm trying to make my mod_python (publisher) based application to talk 
with a service provider who requires me to accept incoming POST request 
with text/xml as Content Type and some XML as the content of the 
request. However these requests are killed by Apache with a 501 "Method 
not implemented" error before they reach my app.

I've been unable to find any information on this issue anywhere. Is my 
Apache misconfigured or perhaps should I provide my own implementation 
of XML over http to Apache and if so how?

Any ideas?

Full error follows:

 > POST /mytest HTTP/1.1
 > User-Agent: curl/7.16.0 (i386-portbld-freebsd6.1) libcurl/7.16.0 
OpenSSL/0.9.7e zlib/1.2.2
 > Host: mydomain.com
 > Accept: */*
 > Content-Type: text/xml
 > Content-Length: 100
 >
< HTTP/1.1 501 Method Not Implemented
< Date: Thu, 31 May 2007 18:01:38 GMT
< Server: Apache/2.0.54 (Fedora) DAV/2 FrontPage/5.0.2.2635 mod_jk/1.2.6 
mod_python/3.1.4 Python/2.4.3 mod_ssl/2.0.54 OpenSSL/0.9.7f 
mod_perl/2.0.1 Perl/v5.8.6
< Allow: GET,HEAD,POST,TRACE
< Content-Length: 217
< Connection: close
< Content-Type: text/html; charset=iso-8859-1
* Closing connection #0
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>501 Method Not Implemented</title>
</head><body>
<h1>Method Not Implemented</h1>
<p>POST to /fundbyphone not supported.<br />
</p>
</body></html>



More information about the Mod_python mailing list