Hey everyone!
So, I’ve been trying to figure out how to properly use *curl add header* to include custom headers in my requests, but I’m kinda stuck. Like, I know the basic syntax is something like `-H "Header: Value"`, but I’m not sure if I’m doing it right.
For example, if I wanna add an auth token, should I just do `curl add header -H "Authorization: Bearer mytoken"`? Or am I missing something?
Also, what if I need to add multiple headers? Do I just stack the `-H` flags?
Sorry if this is a noob question, but I’ve been googling and still feel a bit lost. Any tips or examples would be super helpful!
Thanks in advance, y’all! 🙏
So, I’ve been trying to figure out how to properly use *curl add header* to include custom headers in my requests, but I’m kinda stuck. Like, I know the basic syntax is something like `-H "Header: Value"`, but I’m not sure if I’m doing it right.
For example, if I wanna add an auth token, should I just do `curl add header -H "Authorization: Bearer mytoken"`? Or am I missing something?
Also, what if I need to add multiple headers? Do I just stack the `-H` flags?
Sorry if this is a noob question, but I’ve been googling and still feel a bit lost. Any tips or examples would be super helpful!
Thanks in advance, y’all! 🙏
