How to display cURL values before curl_exec?
Posted: Mon Aug 31, 2009 7:29 pm
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.
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.