[wp-trac] [WordPress Trac] #35185: Unable to create Post via XMLRPC after upgrading to 4.4
WordPress Trac
noreply at wordpress.org
Tue Dec 22 08:13:14 UTC 2015
#35185: Unable to create Post via XMLRPC after upgrading to 4.4
-----------------------------+------------------------
Reporter: Sandeep.Prakash | Owner:
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 4.4.1
Component: XML-RPC | Version: 4.4
Severity: normal | Resolution:
Keywords: | Focuses:
-----------------------------+------------------------
Comment (by Sandeep.Prakash):
@dd32 : Thanks for thequick response. Here is the tcpdump. NOTE: I've
replaced the user name (USER-NAME)and password (PASSWORD).
{{{
12:55:33.344291 IP 192.168.1.2.57044 > cp-in-4.webhostbox.net.http: Flags
[S], seq 3142370791, win 29200, options [mss 1460,sackOK,TS val 246544 ecr
0,nop,wscale 7], length 0
E..<.. at .@..`....g.;....P.L........r.d..........
............
12:55:33.494357 IP 192.168.1.2.57044 > cp-in-4.webhostbox.net.http: Flags
[.], ack 3013320556, win 229, options [nop,nop,TS val 246559 ecr
1945382366], length 0
E..4.. at .@..g....g.;....P.L.....l....d......
....s.-.
12:55:33.706753 IP 192.168.1.2.57044 > cp-in-4.webhostbox.net.http: Flags
[.], seq 0:1424, ack 1, win 229, options [nop,nop,TS val 246580 ecr
1945382366], length 1424: HTTP: POST /xmlrpc.php HTTP/1.1
E..... at .@.......g.;....P.L.....l....j......
...4s.-.POST /xmlrpc.php HTTP/1.1
TE: deflate,gzip;q=0.3
Connection: TE, close
Accept: text/xml
Accept: multipart/*
Accept: application/soap
Host: sandeep-prakash.com
User-Agent: SOAP::Lite/Perl/1.17
Content-Length: 1366
Content-Type: text/xml
<?xml version="1.0"
encoding="UTF-8"?><methodCall><methodName>metaWeblog.newPost</methodName><params><param><value><int>1</int></value></param><param><value><string
>USER-
NAME</string></value></param><param><value><string>PASSWORD</string></value></param><param><value><struct><member><name>wp_password</name><value
/></member><member><name>permaLink</name><value
/></member><member><name>mt_keywords</name><value
/></member><member><name>mt_text_more</name><value
/></member><member><name>dateCreated</name><value
/></member><member><name>link</name><value
/></member><member><name>wp_slug</name><value
/></member><member><name>mt_allow_comments</name><value
/></member><member><name>date_created_gmt</name><value
/></member><member><name>mt_excerpt</name><value
/></member><member><name>title</name><value><string>Wonderful
Thing</string></value></member><member><name>description</name><value><string>This
is the main page
content</string></value></member><member><name>wp_author_display_name</name><value
/></member><member><name>wp_author_id</name><value
/></member><member><name>mt_allow_pings</name><value
/></member><member><name>categories</name><value
12:55:33.706983 IP 192.168.1.2.57044 > cp-in-4.webhostbox.net.http: Flags
[P.], seq 1424:1614, ack 1, win 229, options [nop,nop,TS val 246580 ecr
1945382366], length 190: HTTP
E..... at .@.......g.;....P.L.x...l....eI.....
...4s.-./></member><member><name>userid</name><value
/></member><member><name>postid</name><value
/></member></struct></value></param><param><value><int>1</int></value></param></params></methodCall>
12:55:34.931943 IP 192.168.1.2.57044 > cp-in-4.webhostbox.net.http: Flags
[.], ack 906, win 243, options [nop,nop,TS val 246703 ecr 1945383803],
length 0
E..4.. at .@..d....g.;....P.L.6........d......
....s.3{
12:55:34.938704 IP 192.168.1.2.57044 > cp-in-4.webhostbox.net.http: Flags
[F.], seq 1614, ack 907, win 243, options [nop,nop,TS val 246703 ecr
1945383803], length 0
E..4.. at .@..c....g.;....P.L.6........d......
....s.3{
}}}
Here is the payload extracted from above:
{{{
<?xml version="1.0" encoding="UTF-8"?>
<methodCall>
<methodName>metaWeblog.newPost</methodName>
<params>
<param>
<value>
<int>1</int>
</value>
</param>
<param>
<value>
<string>Intraday-Trading</string>
</value>
</param>
<param>
<value>
<string>!^tr at d@y~Tr at d1^g</string>
</value>
</param>
<param>
<value>
<struct>
<member>
<name>wp_password</name>
<value/>
</member>
<member>
<name>permaLink</name>
<value/>
</member>
<member>
<name>mt_keywords</name>
<value/>
</member>
<member>
<name>mt_text_more</name>
<value/>
</member>
<member>
<name>dateCreated</name>
<value/>
</member>
<member>
<name>link</name>
<value/>
</member>
<member>
<name>wp_slug</name>
<value/>
</member>
<member>
<name>mt_allow_comments</name>
<value/>
</member>
<member>
<name>date_created_gmt</name>
<value/>
</member>
<member>
<name>mt_excerpt</name>
<value/>
</member>
<member>
<name>title</name>
<value>
<string>Wonderful Thing</string>
</value>
</member>
<member>
<name>description</name>
<value>
<string>This is the main page content</string>
</value>
</member>
<member>
<name>wp_author_display_name</name>
<value/>
</member>
<member>
<name>wp_author_id</name>
<value/>
</member>
<member>
<name>mt_allow_pings</name>
<value/>
</member>
<member>
<name>categories</name>
<value/>
</member>
<member>
<name>userid</name>
<value/>
</member>
<member>
<name>postid</name>
<value/>
</member>
</struct>
</value>
</param>
<param>
<value>
<int>1</int>
</value>
</param>
</params>
</methodCall>
}}}
I see that it is using the method metaWeblog.newPost and not wp.newPost.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35185#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list