Adding headers to HTTP request for XML files

First of all, I don’t even know what programming language to use that can run on chrome as I have only worked with CSS and HTML. If anyone can direct me to how such code affects running programs like chrome that would be great.

Basically I have a link that looks like:

…and to access the products in these XML files I need to add my password and id as HTTP headers. So how do I do that?

Example PHP I was given, but I am not sure how and where to run it, so I don’t know if it works:

<?php $nonce = 'TEXT_FOR_NOUNCE'; $created = 'DATE_HOUR'; $password = 'password'; $apicode = 'apicode'; $password_hash = strtoupper(md5($password)); $token = $apicode . $nonce . $created . $password_hash; $digest = base64_encode(sha1($token, TRUE)); echo $digest; ?> 
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.