Two things. #1 is that you can't do that straight up with cfhttp, as already has been said. You'd need a more intelligent user agent, perhaps look at Selenium, which runs a full fledged browser, like Firefox, headless. You could also inspect the vote function above and see what that does. Presumably, at some point, it is doing an http call back to the server to record the vote. You may be able to emulate that instead of the click event.
#2...are you trying to game an online voting system by writing a bot? That's pretty shitty if you ask me. Judah On Sat, Jul 26, 2014 at 2:52 PM, Matthew Smith <[email protected]> wrote: > > <div class="arrow login-required upmod" > onclick="$(this).vote(r.config.vote_hash, null, event)" role="button" > aria-label="upvote" tabindex="0" pairnum="1"></div> > > I am pulling a page via cfhttp. I want to emulate clicking the above link. > How would I do so? > > Thanks! > > -- > Regards, > chedder is bedder > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-community/message.cfm/messageid:371884 Subscription: http://www.houseoffusion.com/groups/cf-community/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-community/unsubscribe.cfm
