1. Navigation
  2. Content

» Curl HTTP 417 – Expectation Failed | Chris Mckee Designs, by Chris McKee, who'd of guessed | ChrisMcKee.co.uk


18 Responses to “ Curl HTTP 417 – Expectation Failed ”

  1. I rarely comment on blogs but yours I had to stop and say Great Blog!!

  2. Using the IXR PHP XML-RPC library would make this easier. It takes care of the transport level items (that you are using curl for) and allows you to focus on calling methods and processing the results.

    The IXR library ships with WordPress and is found at wp-includes/class-IXR.php.

  3. @JS Aye good point, but the blog I was targeting was actually on WordPress.com rather then hosted. Usual case of Marketing v IT for getting things done; sometimes its quicker to go else where ;o)

    Thanks

  4. Woo, you just saved my skull. Cheers!

  5. oh men! this is great.. thanks for this line curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));

    this line saves me!!

  6. Wow thanks man, im one of those whom you saved a nasty headcache ;)

  7. hey...

    earlier I was able to work it properly but after changed my hosting it 's not working..

    it's showing faultCode 403 faultString Bad login/pass combination.

    there is all detail is correct I dont' know wht's prob there

    Can you help me out??

  8. @zappak: Try changing your password in what ever it is your trying to communicate with then remember to change iit in your script; if its not that then something went wrong with the service authentication process (403 faultString Bad login/pass combination.). Try changing the credentials or contacting your hosting support (as they should be able to test the same thing).

  9. You saved my day! thanks a lot ;)

  10. Argh!! HTTP error 417 I was searching since Y.

    Thanks AGAIN for this line curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));

  11. Thanks thanks thanks!!!

  12. Sorry to dig up an old post but... thank fook!!!! I was literally about to rewrite my code. Thank you.

    Now if only I could figure out why this just started happening and wasn't happening all along!!!

  13. Great! Thx a lot for curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));

  14. @recent commenters

    why reinvent the wheel? this functionality is already built in WP

  15. Awesome! That fixed my problem :)
    Thanks!!

  16. Thank you thank you thank you!! I've been banging my head on this one for TWO weeks!!! Great post.

  17. Super stuff. Spent or I must say wasted one day trying to find a solution for this till I hit this page. Thanks a ton.
    - Gyanesh

  18. Awesome fix! That "CURLOPT_HTTPHEADER, array('Expect:'))" line saved me hours of re-writing workaround! Used it to post a form on another non-wp site.