[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Http error 405



Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>


It means that the server doesn't allow the POST method. (Maybe not for the document that you specified, or maybe not at all.)


I don't know if it's related, but your "uagent" string doesn't make any sense. I suggest replacing it with:
c eval uagent= HTTP_USERAGENT
(No quotes, and with an "R" in the middle)


But, I doubt that's part of the problem. More likely, you're doing a POST request where it's not allowed. Do you have documentation on how to use this webservice?

---
Scott Klement  http://www.scottklement.com

On Tue, 20 Dec 2005, llandreth@xxxxxxxxx wrote:

Sender: llandreth@xxxxxxxxx


I sent an XML document to a new vendor, expecting his Post Back, using HTTP_url_post_stmf() API.

Here is the error:  DSPLY  HTTP/1.1 405 Method Not Allowed.
Where can I find the error and an explanation of how to correct it?

Here is my code (Example 8):

c                   eval      urlad= 'http://www.rentquick+
c                                   .com/receiver.asp'
c                   eval      stmf   = '/RentQuick/OrderEQ.xml'
c                   eval      timeo  = 180
c                   eval      filein = '/RentQuick/ReturnEQ.xml'
c                   eval      content= 'text/xml'
c                   eval      uagent= 'HTTP_USEAGENT'
 * NEW API(using 6 of 7 parms)
c                   eval      rc=http_url_post_stmf(%trim(URLAD):
c                                         %trim(stmf):
c                                         %trim(filein):
c                                         timeo:
c                                         %trim(uagent):
c                                         %trim(content))
c                   if        rc <> 1
c                   eval      msg = http_error
c                   dsply                   msg
c                   dump
c                   return
c                   endif



Linda Landreth
Park University Enterprises, Inc.
9757 Metcalf Avenue
Overland Park, KS  66212
llandreth@xxxxxxxxx
(913) 967 - 8321 direct


----------------------------------------------------------------------- This is the FTPAPI mailing list. To unsubsribe from the list send mail to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr -----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------