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 Commented Mar 21, 2019 at 7:51

0

Your Answer

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

Browse other questions tagged or ask your own question.