I’ve managed to solve this problem (actually there were two). The first problem was that as we’re behind a proxy server I had to modify the script to get CURL to route through it, and I missed the port number off when setting it in the post_blogger function.
The second problem was that our proxy was rejecting the request to the blogger site when checking the status of the publish operation. It complained of an ‘illegal’ character in the request, which on examination turned out the be a line-feed between the URL and the HTTP header. I added a line of code to strip any control characters off the URL before using it and everything now works OK.
Brooklands