How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Russell H. Your Own Question

Russell H.
Russell H., Programmer & Coder
Category: Programming
Satisfied Customers: 9523
Experience:  Programmer & Coder
13568747
Type Your Programming Question Here...
Russell H. is online now
A new question is answered every 9 seconds

I 't know the best way to change the

Customer Question

I don't know the best way to change the "authorization" header to "a long key code number" in a php page of mine I am using to try and pull api data from an affiliate network later on in the page.
Submitted: 9 months ago.
Category: Programming
Expert:  Russell H. replied 9 months ago.

Hi, thank you for contacting JustAnswer.com. My name is***** will do my best to provide the right answer to your question.

This is a species of workaround for a missing Authorization header when you're working with CGI/FastCGI Apache:

SetEnvIf Authorization .+ HTTP_AUTHORIZATION="[whatever long key code number you need]"

...at least I think it is, if the part within the [.....] space is the long key code number adequately declared.

Customer: replied 9 months ago.
I am not using cgi though. Just php on a normal public_html page.
Expert:  Russell H. replied 9 months ago.

Can you tell me a little something about what the authorization header *is* like, then? just the context, not the matter of the header itself, please.

Customer: replied 9 months ago.
I got it working once. it's output is an xml file. Once you have got the xml file its easy really. its just getting the xml file with the authorization key in a modified header that's difficult. I tried with a protocol. http. basically you access an api url like http://example.com/?parameter1'&?parameter2 and an xml file with all you want about the two parameters drops out.
Usually. I just don't seem to remember how I got in with the modified authorization key to rip the xml file (it's all legal. don't worry).
Expert:  Russell H. replied 9 months ago.

I'm sorry to hear that - it's a section of programming that I know little about, and is not at all familiar. (There are so many programming sectors and coding types these days.)

I have Opted Out, opening this case to other Experts in this category.