I want to grab data from a website say www.example.com/stations
with XML output:
<stations>
<station>
<name>Loppersum</name>
<code>LP</code>
<country>NL</country>
<lat>53.334713</lat>
<long>6.7472625</long>
<alias>false</alias>
</station>
<station>
<name>Ludinghausen</name>
<code>ELDH</code>
<country>D</country>
<lat>51.76184</lat>
<long>7.43165</long>
<alias>true</alias>
</station>
</stations>
But the url is protected by a password and username (I have that).
I thought that I can use the cURL function, but i never used it before. Can I store the data also as a object?
EDIT:
It is a HTTP Authorization and I use PHP