Reputation: 4785
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 But I want to see the raw (in plain text) HTTP request
Upvotes: 56
Views: 107264
Reputation: 608
Solution - Safari version v14.0.x
Network > Headers tab - and then by clicking on a SMALL ARROW that displayed the entire payload on a new tab.
Upvotes: 6
Reputation: 338
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.
Upvotes: 7
Reputation: 1249
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!
(Sorry for the browser language in Portuguese, btw).
Once the data screen is loaded, you can even switch between Request and Response views.
Hope this helps :)
Upvotes: 58
Reputation: 174
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".
Upvotes: 8
Reputation: 12855
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.
Upvotes: 2
Reputation: 16706
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.
Upvotes: 25