How to output a list of POST data which Zend_Http_Client will send?
I need to debug my Zend_Http_Client 开发者_开发问答code so that I am sure that I am sending all of the proper POST fields & headers to my server. How can I output the list of the POST fields which will be sent, or even what the entire HTTP command will be?
Turns out I missed it right in the documentation: getLastRequest()
will return a stringified version of the entire last request!
精彩评论