Sorry to reply to my own post, but....

I changed up the code to:

<CFHTTP
METHOD="get"
URL="" &blog_name=My+Blog&title=This+is+the+title "
THROWONERROR="Yes">
</CFHTTP>

<CFTRY>
<CFCATCH type="Any">
<CFOUTPUT>#CFHTTP.StatusCode#</CFOUTPUT>
Failure!
</CFCATCH>
</CFTRY>

This works like a champ.

One thing though, since the URL changes out with other URLs, how do I avoid a server error if the URL is something like: "mysite.com/page.cfm?id=1234"?

By running these things through the URL, sometimes I may need to start with "&url="" and other times "?url="" depending on what the URL is.

Thoughts?

>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]

Reply via email to