How to inspect HTTP requests in Safari 8 or later

Safari

Safari Problem Overview


I can't seem to find a way to view the raw HTTP requests sent by safari to the webserver. Does anyone know how you can do this in Safari 8.

I did manage to find some HTTP headers in the resource tab of the web inspector enter image description here But I want to see the raw (in plain text) HTTP request

Thanks in advance

Safari Solutions


Solution 1 - Safari

Actually, there is a way to do that, just like Chrome:

On the Inspector window, at the Resource sidebar (at right), there's a small arrow at the "Request Data" subsection. That's where we need to click!

enter image description here

(Sorry for the browser language in Portuguese, btw).

Once the data screen is loaded, you can even switch between Request and Response views.

enter image description here

Hope this helps :)

Solution 2 - Safari

The only solution I found, was to use the Timeline and select "Network Requests" on the left. Click the red "Record" icon, so that you record all your requests. They will then appear in the timeline viewer. Then make sure that you select this time span (scrolling inside the timeline shows a smaller or bigger time span), an the request will appear below the timeline viewer.

Timeline viewer in Safari

Solution 3 - Safari

For later versions of Safari, you can right click on the row in the network tab, (in the white section on the right, not the gray section on the left) and "Copy as cURL". Then paste that into a text editor and look at the bottom where it specifies "--data".

Solution 4 - Safari

In Safari 12, select the row in the network tab. The response will be displayed in the main area. Above it will be a few tabs. Select the Headers tab and take a look in the request part of the displayed data for some request info. For details on the request data, take a look under "Request Data". If applicable, there will be a small arrow there that you can press to see the full content of the request.

Solution 5 - Safari

Unfortunately Safari timeline is not so informative as Chrome one. The latter shows all delays separately: DNS, connect, blocking, transferring and so on. It lets you can easily see what to optimize first.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionDamiaan DufauxView Question on Stackoverflow
Solution 1 - SafariDccBrView Answer on Stackoverflow
Solution 2 - SafarienyoView Answer on Stackoverflow
Solution 3 - SafariEthan B. MartinView Answer on Stackoverflow
Solution 4 - SafaripierrovicView Answer on Stackoverflow
Solution 5 - SafariEugene LisitskyView Answer on Stackoverflow