0

I have to construct URL for a rest api delete call in php. For it I need to generate a url dynamically for each of the items in a list. The url is of the form localhost/tasks/delete/task_id where task_id is the variable for each item, I also need to put an authorization header in the url which would contain api key. I have to anchor this url to a link in html.

I can append the task_id but I couldn't find a way to include the header. Please provide in code/pseudo code how to do this.

Kara
  • 6,115
  • 16
  • 50
  • 57
Florentino
  • 117
  • 1
  • 1
  • 8

0 Answers0