FeedWordPress and HTTP Error 400

July 2, 2009

So I’ve been toying with the idea of setting up WordPress to syndicate content from other sites I contribute to. Unfortunately, there seems to be a bug in the FeedWordPress plugin that prevents you from using feed URLs containing ampersands. Doing so results in an error like this:

                      Diagnostic information
                      
                      HTTP request failure
                      
                      400: Bad Request
                      
                      HTTP Transports available:
                      
                          1. WP_Http_Fsockopen
                      

Apparently, I’m not the only one who has encountered this issue, but I did discover a workaround. Just change all the ampersands in your feed URL to the HTML entity equivalent. Example:

                      http://gdata.youtube.com/feeds/base/users/whatever/uploads?orderby=published&safeSearch=none
                      

Becomes…

                      http://gdata.youtube.com/feeds/base/users/whatever/uploads?orderby=published&safeSearch=none
                      
blog comments powered by Disqus