Page 1 of 1

How to display cURL values before curl_exec?

Posted: Mon Aug 31, 2009 7:29 pm
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.

Re: How to display cURL values before curl_exec?

Posted: Mon Aug 31, 2009 8:00 pm
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.