Title: 405 &#8211; Method Not Allowed
Last modified: August 22, 2016

---

# 405 – Method Not Allowed

 *  [jarededutect](https://wordpress.org/support/users/jarededutect/)
 * (@jarededutect)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/405-method-not-allowed-1/)
 * Hi,
 * I am receiving a 405 error. I am not quite sure why and am hoping I am missing
   something simple. Any help would be greatly appreciated. Thank you. See below
   for response trace:
 * *** Response ***
    Array ( [headers] => Array ( [date] => Mon, 08 Sep 2014 03:
   08:32 GMT [server] => Apache [content-length] => 988 [ns_rtimer_composite] =>-
   367690292:616363742D6A6176613134342E7376616C652E6E65746C65646765722E636F6D:80[
   set-cookie] => Array ( [0] => JSESSIONID=styRJNdRQh34p3D9lW0vL92vxBVx4kyP5rGpcb5KrcYzPRtRKhWgQ6D7p9qJmhvLy2F24JYs0GG37r9LX37PL25Xb0zxvSBvpg5yJ6LpThJYR8WNvbKpPnvh3ScSyQQ1!
   731334925; path=/ [1] => NS_VER=2014.1.0; domain=forms.netsuite.com; path=/ )
 *  [x-powered-by] => Servlet/2.5 JSP/2.1
    [p3p] => CP=”CAO PSAa OUR BUS PUR” [vary]
   => User-Agent [keep-alive] => timeout=10, max=979 [connection] => Keep-Alive [
   content-type] => text/html; charset=UTF-8 )
 *  [body] => <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Draft//EN”>
    <HTML> <HEAD
   > <TITLE>Error 405–Method Not Allowed</TITLE> <META NAME=”GENERATOR” CONTENT=”
   WebLogic Server”> </HEAD> <BODY bgcolor=”white”> <FONT FACE=Helvetica><BR CLEAR
   =all> <TABLE border=0 cellspacing=5><TR><TD><BR CLEAR=all> <FONT FACE=”Helvetica”
   COLOR=”black” SIZE=”3″><H2>Error 405–Method Not Allowed</H2> </FONT></TD></TR
   > </TABLE> <TABLE border=0 width=100% cellpadding=10><TR><TD VALIGN=top WIDTH
   =100% BGCOLOR=white><FONT FACE=”Courier New”><FONT FACE=”Helvetica” SIZE=”3″>
   <H3>From RFC 2068 <i>Hypertext Transfer Protocol — HTTP/1.1</i>:</H3> </FONT>
   <FONT FACE=”Helvetica” SIZE=”3″><H4>10.4.6 405 Method Not Allowed</H4> </FONT
   ><P><FONT FACE=”Courier New”>The method specified in the Request-Line is not 
   allowed for the resource identified by the Request-URI. The response MUST include
   an Allow header containing a list of valid methods for the requested resource.
   </FONT></P> </FONT></TD></TR> </TABLE>
 * </BODY>
    </HTML>
 *  [response] => Array
    ( [code] => 405 [message] => Method Not Allowed )
 *  [cookies] => Array
    ( [0] => WP_Http_Cookie Object ( [name] => JSESSIONID [value]
   => styRJNdRQh34p3D9lW0vL92vxBVx4kyP5rGpcb5KrcYzPRtRKhWgQ6D7p9qJmhvLy2F24JYs0GG37r9LX37PL25Xb0zxvSBvpg5yJ6LpThJYR8WNvbKpPnvh3ScSyQQ1!
   731334925 [expires] => [path] => / [domain] => forms.netsuite.com )
 *  [1] => WP_Http_Cookie Object
    ( [name] => NS_VER [value] => 2014.1.0 [expires]
   => [path] => / [domain] => forms.netsuite.com )
 *  )
 *  [filename] =>
    [safe_message] => physical request failure )
 * [https://wordpress.org/plugins/forms-3rdparty-integration/](https://wordpress.org/plugins/forms-3rdparty-integration/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [zaus](https://wordpress.org/support/users/zaus/)
 * (@zaus)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/405-method-not-allowed-1/#post-5268570)
 * Not entirely sure, but the error message coming back from the page is:
 * > The response MUST include an Allow header containing a list of valid methods
   for the requested resource
 * I don’t think that means you’re supposed to provide the header; have you tried
   contacting a representative from the endpoint? Where are you trying to post?
 *  Thread Starter [jarededutect](https://wordpress.org/support/users/jarededutect/)
 * (@jarededutect)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/405-method-not-allowed-1/#post-5268581)
 * Thanks. It would seem you are right with the endpoint causing issues as I tried
   to write my own hook from the Gravity Forms submission using WP_HTTP() etc as
   per their examples to no available. When I implemented a CURL it posts fine. 
   So I believe the endpoint isn’t liking something about WP_HTTP().
 *  Plugin Author [zaus](https://wordpress.org/support/users/zaus/)
 * (@zaus)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/405-method-not-allowed-1/#post-5268583)
 * Weird. Similar to what I said in [this question about making a GET request instead of POST](http://wordpress.org/support/topic/method-get?replies=2#post-5996489),
   you can write a ‘simple’ bypass hook to send the relevant `$post_args` via `curl`
   instead.
 * Or send them via email. Or save to a database. Etc. (in case anyone else stumbles
   here looking for those suggestions…)
 *  Thread Starter [jarededutect](https://wordpress.org/support/users/jarededutect/)
 * (@jarededutect)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/405-method-not-allowed-1/#post-5268588)
 * Thanks Zaus. I will have a further play in the next few days and let you know.
 *  [alanpace](https://wordpress.org/support/users/alanpace/)
 * (@alanpace)
 * [11 years ago](https://wordpress.org/support/topic/405-method-not-allowed-1/#post-5268674)
 * I have the exact same issue as described in this ticket. Like the original poster,
   I’m trying to use 3rd Party Integration to post to NetSuite using Gravity Forms
   and getting a 405 error.
 * I haven’t yet figured out how to implement your suggested solution– posting the
   arguments via curl using a bypass hook. Just based on what jarededutect said,
   however, I assume that would solve this issue.
 * NetSuite has no problem accepting data via post when it’s sent through a simple
   html form. Regardless of the fact that wp_http() is being used, POST is still
   the method implemented by this plugin to send the data.
 * Can you speculate as to why a simple html form would be accepted by the endpoint
   but a form that uses wp_http() would be rejected with “method not allowed”?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘405 – Method Not Allowed’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/forms-3rdparty-integration.svg)
 * [Forms: 3rd-Party Integration](https://wordpress.org/plugins/forms-3rdparty-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/forms-3rdparty-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/forms-3rdparty-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/forms-3rdparty-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/forms-3rdparty-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/forms-3rdparty-integration/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [alanpace](https://wordpress.org/support/users/alanpace/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/405-method-not-allowed-1/#post-5268674)
 * Status: not resolved