How can you say that?
How could you say that?
By what did you say that?
都可以表达这样的意思.
(一楼给的可能出现在莎士比亚的剧本中,不属于现代英语用法)