WebPagetest Forums
Setting Custom Header with RESTful API - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: General Discussion (/forumdisplay.php?fid=25)
+--- Thread: Setting Custom Header with RESTful API (/showthread.php?tid=15462)



Setting Custom Header with RESTful API - pierceray - 08-01-2018 02:00 AM

In the UI of Web Page Test you can set a custom header (in advanced), but it doesn't appear that it is documented that you can do the same with the RESTful API. Is that a gap in the documentation or is that not possible via the API?

Thanks in advance,

Ray Pierce


RE: Setting Custom Header with RESTful API - pmeenan - 08-01-2018 11:36 PM

Gap in the documentation. The UI uses the API itself. The easiest way to get the field name for cases like that is to just inspect the UI in dev tools and look at the form field name for the field in question ("customHeaders" in this case).