I'm trying to implement Moveable Type's Trackback standard into my blog
application. I'm can get everything working except pinging MT blogs.
>From the MT docs, I need to:
To send a ping, the client sends an HTTP POST request to the TrackBack
Ping URL. The request contents should be of the content type
application/x-www-form-urlencoded. For example, a ping request to the
URL http://www.foo.com/mt-tb.cgi/5 might look like this:
POST http://www.foo.com/mt-tb.cgi/5
Content-Type: application/x-www-form-urlencoded
title=Foo+Bar&url="">
From:
http://www.movabletype.org/docs/mttrackback.html#sending%20a%20trackback
%20ping
This is the code I'm using:
<CFHTTP
METHOD="post"
URL="">
THROWONERROR="Yes">
<CFHTTPPARAM type="FORMFIELD" name="title" value="test">
<CFHTTPPARAM type="FORMFIELD" name="URL" value="test">
<CFHTTPPARAM type="FORMFIELD" name="blog_name" value="test">
<CFHTTPPARAM type="FORMFIELD" name="excerpt" value="test">
</CFHTTP>
<CFTRY>
<CFCATCH type="Any">
<CFOUTPUT>#CFHTTP.StatusCode#</CFOUTPUT>
Failure!
</CFCATCH>
</CFTRY>
It's not generating an error, but it's also not pinging the MT blog
correctly.
Any ideas? Help!
Jake
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

