Plugin to forward messages to URL?

Hi, sorry if this is an obvious question but I’m new to Openfire and XMPP and I’m not sure where to look for this.

I want to forward all messages sent to a user, to a URL, presumably with the message details in POST for or something like that.

Effectively I want to make a bot, running off a local web server, that can respond to messages. I can already send messages, I just can’t recieve them in the first place.

Note: I don’t want to use a persistant connection listening on the website with BOSH, I want the URL to only be triggered when there’s a message.

I’m running Openfire 3.7.1 on Windows.

Thanks for any help you can give me,

James