SteveHoneyNZ on "[Plugin: Forms: 3rd-Party Integration] 405 Error, NetSuite CRM, WPCF7"

ساخت وبلاگ

Hi,

I'm hoping to use this plug-in to send data from a Contact Form 7 form to NetSuite.

I'm getting the same "405 - Method Not Allowed" error described in a closed support thread for the plug-in:

https://wordpress.org/support/topic/405-method-not-allowed-1

Here's what debug has to say about the failure:

...
**RAW RESPONSE**
Array
( [headers] => Array ( [date] => Wed, 06 Apr 2016 03:42:40 GMT [server] => Apache [content-length] => 938 [ns_rtimer_composite] => 2078797948:616363742D6A61766130303030332E7376616C652E6E65746C65646765722E636F6D:80 [set-cookie] => Array ( [0] => JSESSIONID=H4QvXGFQkxt3TJb1ppbcGGhsyg22G2GPxTkPGwsNkPT49NfGplvkrXpzPmZv397FD6lHbV19v7vVSL3NvsytbJLRPQ2Y7vF2f4JK1HpnyTs0LMHBlQh1zDbXM86SWJ25!-617098506; path=/ [1] => NS_VER=2016.1.0; domain=forms.netsuite.com; path=/ ) [p3p] => CP="CAO PSAa OUR BUS PUR" [vary] => User-Agent [keep-alive] => timeout=10, max=999 [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>
</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] => H4QvXGFQkxt3TJb1ppbcGGhsyg22G2GPxTkPGwsNkPT49NfGplvkrXpzPmZv397FD6lHbV19v7vVSL3NvsytbJLRPQ2Y7vF2f4JK1HpnyTs0LMHBlQh1zDbXM86SWJ25!-617098506 [expires] => [path] => / [domain] => forms.netsuite.com ) [1] => WP_Http_Cookie Object ( [name] => NS_VER [value] => 2016.1.0 [expires] => [path] => / [domain] => forms.netsuite.com ) ) [filename] => [safe_message] => physical request failure
)

I haven't discovered a fix, though maybe there's a clue insofar as the value for User-Agent. According to this somewhat-unrelated article the endpoint (NetSuite) requires a specific value for user-agent:

http://blog.prolecto.com/2014/08/14/anonymous-suitelet-demands-user-agent-header/

You may be coming from a server environment that is not supplying this value automatically. To solve this, add the following key/value pair to the HTTP Headers: “User-Agent : Mozilla/5.0″. Now the Suitelet will think that the request is coming from a browser and it should accept the anonymous request.

Could that possibly be the cause of the 405??!

Any thoughts? It would be great to have this plug-in working with NetSuite!

https://wordpress.org/plugins/forms-3rdparty-integration/

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 258 تاريخ : سه شنبه 8 تير 1395 ساعت: 9:32