2

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?

Jason
  • 14,517
  • 25
  • 92
  • 153

1 Answers1

7

Turns out I missed it right in the documentation: getLastRequest() will return a stringified version of the entire last request!

Jason
  • 14,517
  • 25
  • 92
  • 153
  • 1
    BTW for more advanced testing there is also the Test ZHC adapter, but it is probably not needed unless you intend to write unit tests to test your use of ZHC. – shevron Sep 14 '11 at 07:47