Content-type text/xml causes 403 forbidden response on Apache?

This is a discussion on Content-type text/xml causes 403 forbidden response on Apache? within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hello, I was wondering if anyone can help me with the strange problem. I'm trying to do an HTTP ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-07-2005
sdwang@gmail.com
 
Posts: n/a
Default Content-type text/xml causes 403 forbidden response on Apache?

Hello,

I was wondering if anyone can help me with the strange problem.
I'm trying to do an HTTP POST of a SOAP message to my web server which
is running Apache.

POST /SOAP/orderServer.php HTTP/1.0
Host: www.legalresearchassociates.com
Content-Type: text/xml; charset=ISO-8859-1
Content-Length: xxxx

The response I get is a 403 forbidden response.
The thing I don't understand is, when I remove the Content-Type,
or use another Content-Type (such as Content-Type:
application/x-www-form-urlencoded), it runs fine?

So, if I did the same POST without a content-type,

POST /SOAP/orderServer.php HTTP/1.0
Host: www.legalresearchassociates.com
Content-Length: xxxx

The soap server runs fine and returns a text/xml response back to me as
it is supposed to.

Any help will be greatly appreciated.

Thanks,
Dennis

  #2 (permalink)  
Old 04-07-2005
Nick Kew
 
Posts: n/a
Default Re: Content-type text/xml causes 403 forbidden response on Apache?

sdwang@gmail.com wrote:

> POST /SOAP/orderServer.php HTTP/1.0


What does the documentation of /SOAP/orderServer.php say?

> The response I get is a 403 forbidden response.


The error log is your friend.

> So, if I did the same POST without a content-type,
> The soap server runs fine and returns a text/xml response back to me as
> it is supposed to.


Sounds like a broken PHP. Now why am I not in the least surprised?

--
Nick Kew
  #3 (permalink)  
Old 04-07-2005
kipling100
 
Posts: n/a
Default Re: Content-type text/xml causes 403 forbidden response on Apache?

Hi Nick,

Actually, when I run the same php script on another server, it works
perfectly, so I'm pretty sure it's not broken PHP, and probably a web
server issue. Is that a surprise? :)

Dennis

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:51 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0