Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter haddorp

    (@haddorp)

    I get a 403 with message ‘<value><string>Bad login/pass combination.</string>’. Please find my request XML below.

    <methodCall>
      <methodName>wp.newComment</methodName>
      <params>
        <param>
          <value><int>1</int></value>
          <value><string></string></value>
          <value><string></string></value>
          <value><int>17</int></value>
          <value>
          <struct>
            <member>
              <name>content</name>
              <value><string>test this thing! 1</string></value>
            </member>
            <member>
              <name>author</name>
              <value><string>Joseph Scott</string></value>
            </member>
            <member>
              <name>author_email</name>
              <value><string>joseph@example.com</string></value>
            </member>
          </struct>
          </value>
        </param>
      </params>
    </methodCall>
    Thread Starter haddorp

    (@haddorp)

    Thanks for your reply! I know I have to set xmlrpc_allow_anonymous_comments = true

    However this doesn’t help as $this->login causes an exception if providing no/wrong login credentials. I don’t need a login if I want to post an anonymous comment.

    So, the question might be how can I achieve that the if statement evaluates as true?

    I would say that $this->login must not be called if $username is empty. In this case anonymous comments will be either accepted or a 403 will be returned; depending on xmlrpc_allow_anonymous_comments.

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