Send headers, get an xml file (need help)

Hello,
I am new to PHP and would like to understand how to get this xml file. Basically, this company has an API that allows you to fetch your email contacts.

I guess my question is, what does the php looklike to send headers, etc… to get the xml file?

-Peter