Yes, I think torture is acceptable. But ONLY if you're Jack Bauer and you have captured a terrorist who is the only one in the entire world who knows the code to disarm the nuclear bomb that is set to go off in 10 minutes, destroying a third of Los Angeles and killing millions of people, including the visiting U.S. president, his sister, the irreplacable computer whiz Chloe, and your late brother's son (who, incidentally, I secretly suspect is actually the son of you, Jack Bauer, from a previous illicit dalliance with your sister-in-law). If all those conditions are in effect, then sure, have at it, torture away! With my blessing!
Luckily, this situation isn't one we have to worry about confronting very often. Not least because Jack Bauer is a fictional character.
Under any other circumstances, forget it. Torture is one of the most incredibly inhuman (and yes, I mean inhuman, not inhumane) that people do.