Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 339009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T10:28:59+00:00 2026-05-12T10:28:59+00:00

So I have an app that uses the Zend amazon web services client. I

  • 0

So I have an app that uses the Zend amazon web services client. I am now getting an error from the service, and I want to see the raw request and response.

I can’t find a way to do this in the docs! This class implements Zend_Rest_Client so it seems like there should be a rawResponse() method but there isn’t. This is on a production server and I am behind a firewall, so I can’t proxy to fiddler.

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T10:28:59+00:00Added an answer on May 12, 2026 at 10:28 am

    Zend_Rest_Client extends Zend_Service_Abstract, which in turn implements a getHttpClient() method, which returns a Zend_Http_Client instance, which exposes a getLastResponse() method, which returns a Zend_Http_Response instance, which once again exposes a getBody() method. Phew, that’s OOP I guess :).

    Let’s talk our language though:

    $restClient->getHttpClient()->getLastResponse()->getBody();
    

    That’s it.

    EDIT:

    It appears that Zend_Service_Abstract::getHttpClient() is static, so you can even call it like this:

    Zend_Service_Abstract::getHttpClient()->getLastResponse()->getBody();
    

    But I wouldn’t recommend it. You have to know exactly when to call the method, as the HTTP client must be populated with some response. Not to mention that static methods are just some kind of globals, which is bad.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an android app that uses a background service for uploading data. When
I have an app that uses a couple of SOA calls to get some
I have an app that uses Devise and CanCan. in the config>initializers>Abiliity.rb class Ability
I have an app that uses a database. At startup I check to see
I have an app that uses quite a few graphics in it. When I
We have an app that uses network, compass, camera and telephony. It has been
So, I have an app that uses a SQL Server express db. I have
I have a small app that uses Lua linked as dll (not static). I
I have an app that has settings the user can pick before running the
I'm trying to write a unit test with phpunit for a model that uses

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.