How to display cURL values before curl_exec?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
Mitch_H
Forum Newbie
Posts: 7
Joined: Wed Apr 29, 2009 12:33 pm

How to display cURL values before curl_exec?

Post by Mitch_H »

Hello Forums,

I have a FedEx module written in PHP/cURL. It works great in my WAMP test environment, and sometimes in my production Centos Linux environment. It is currently broken in production, bringing down my ecommerce store. I can not see the differences between test and production inputs. I would like to list out all the variables being sent so I can compare the two, but don't know how, since they are stored in a curl handle resource.

Can anybody tell me how to list them? I've used print_r (curl_getinfo($ch)) but that only shows the variables after they've gone to FedEx, and in the production listing, they are blanks, and zeroes. I need to see whats listed in the resource before it's sent.

Thanks in advance.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: How to display cURL values before curl_exec?

Post by Benjamin »

Have you checked the error log, or the error being returned by curl if there is one? That would be the first place I would look.
Post Reply