Previous Next

Thread: POST with full URL and IIS returns Method not allowed.

Last post 06-09-2008 2:08 AM by Supun06. 0 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (1 items)

Sort Posts:

  • 06-09-2008, 2:08 AM

    • Supun06
    • Not Ranked
    • Joined on 05-21-2008, 7:39 AM
    • Posts 5
    • Supun06

    POST with full URL and IIS returns Method not allowed.

    Hi,

    IIS version 5.1. 

    I have a Filter + Extension. When I send a POST request as shown below

    POST /axis2/services/echo HTTP/1.1
    Host: 127.0.0.1:8081
    Content-Length: 590
    Content-Type: application/soap+xml; charset=UTF-8

    It hits the Filter and everything works fine.

    But when I specify the full URL with the POST as shown below

    POST http://10.100.1.228:8081/axis2/services/echo HTTP/1.1
    Host: 10.100.1.228:8081
    Content-Length: 590
    Content-Type: application/soap+xml;charset=UTF-8

    It  gives the following error

    HTTP/1.1 405 Method not allowed
    Server: Microsoft-IIS/5.1
    Date: Tue, 03 Jun 2008 08:33:08 GMT
    Connection: close
    Allow: OPTIONS, TRACE, GET, HEAD
    Content-Length: 3923
    Content-Type: text/html

    This request doesn't hit the filter. Note that we don't specify a mime type in the request url.

     Is this a bug in IIS 5.1? or am I missing something?

     
    Regards,

    Supun.
     

     

Page 1 of 1 (1 items)
Page view counter