1

I need to pass the whole header to another website through an API.

Do not ask why, this is the task.

I asked some help from one of my colleague, he suggest me to create a controller, what has a layout and block only with header, get it from API with curl or file_get_contents (does not matter).

Somehow I feel this is a workaround.

Does anybody do like this, is there a more elegant solution?

1
  • there are magento wrapper classes for the methods you mentioned. use them instead Mar 21, 2019 at 7:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.