11

I'm running a Silverlight application in my browser. The app communicates to a web server over HTTPS. I want to see the communication between the app and the webserver. Now when I open Web Developer I can see the requests being made. However, when I try to inspect the response from the webserver, a spinner is shown and it stays like that. How can I view the response in Safari 7?

Safari 7 Web Inspector - Response spinner

  • 1
    I don't know how to solve your exact problem with Safari, but perhaps side-stepping the issue by using a proxy like Charles would be the most pragmatic way forward? – aaaidan Jan 14 '14 at 7:45
  • @aaaidan I like pragmatic solutions, but I'd also like to understand why my tools don't work as they should. – bouke Jan 14 '14 at 9:15
  • Fair enough, this sounds like maybe a bug in Safari. Are you sure that the server's response has ended (and closed the connection?) – aaaidan Jan 14 '14 at 20:35
  • 1
    @aaaidan yes, the server closed the connection. In the request overview diagram it is clearly marked as a finished request. – bouke Jan 15 '14 at 7:48
  • Could it be that the document type of the response is something that the response preview panel doesn't recognize? Like, if the response was not text/html but JSON or something that the preview doesn't normally render. – Christian Correa Jan 15 '14 at 16:04
1

Web Inspector doesn't show network traffic for legacy plug-ins. It is simply not reported to the user interface, which is why you can't see it.

Feel free to file a bug about this at: https://www.webkit.org/new-inspector-bug

7

I can't understand if your app do a XmlHTTPRequest.

Anyway... in the resource section (red circle in the image) you can find all the information about a request, even its response.

From timeline section you can easily find all the request

You can access also from resources section

Hope this will help you! :)

PS: Sorry, my GUI is in italian, but you will understand as well

  • Thanks for the response, we're getting close it seems. Although I can see the request (headers and body) and the response headers, there is still no response body. See als this image. – bouke Jan 16 '14 at 11:15
  • 1
    There's no "response data" section? Maybe the response that you are analyze has no body... Could be? – RikyTres Jan 16 '14 at 13:12
  • There's 3.8 kB of response data as can be seen in the screenshot, so that's not the reason either. – bouke Jan 16 '14 at 21:15
3

If you click on Network Requests (in recording mode) you will see list of all request in the table. If you select a row it is highlighted in the resource section. Clicking on it will show its body.

click on the resource name to see its body Showing json body

1

Silverlight is a plug in that draws all content outside the DOM so any normal web tools to introspect how a page loads will fail (and in this case, fail without much grace).

You will get similar problems if you try to "debug" a netflix or hulu stream or other streaming content that relies on a plug in as opposed to HTML and CSS and Javascript (for example) to do the rendering.

-2

You can do the following :

  1. Safari < Settings < Advanced < "Show Develop in Menu" --> Turn this on.
  2. In the Develop Menu bar, choose "Show error console"
  3. In the console, select the tab for "Instrument"

In the Instrument toolbox you can see Network Requests and more. That will let you keep track of the requests you want.

Screenshot for reference below :: enter image description here

  • 3
    Thank you for your reply, but it doesn't solve my problem. Your instructions show me how to get to the developer menu, but that's not the issue here. The screenshot is taken from the developer menu. My issue is a feature from the developer menu that doesn't appear to work correctly. Namely, inspecting the response from the server. Thanks anyway. – bouke Jan 13 '14 at 20:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .