troubleshooting Question

PHP Headers with cURL

Avatar of alpires
alpiresFlag for Brazil asked on
PHP
6 Comments3 Solutions1318 ViewsLast Modified:
Hi,

How can I get requested headers from the server with cURL ?

I mean, When I posted something with FireFox, my plugin brought me these headers:

POST /central/user/sender_id/do_add.php HTTP/1.1
Host: www.clickatell.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; pt-BR; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: pt-br,pt;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: https://www.clickatell.com/central/central/dashboard/senderid_add.php?e_user_no=3744099
Cookie: PHPSESSID=nsfba2f057qs3ro7m6lq1mn8o6
Content-Type: application/x-www-form-urlencoded
Content-Length: 39

senderid=551791245744&e_user_no=3744099



I want to know how do I get it using cURL

ps: its not returntransffer with headers => 1


thanks
ASKER CERTIFIED SOLUTION
d4011

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 3 Answers and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros