Product

Embedding packets in other pages

2 min read

Have you ever wanted to embed a packet trace right into the blog post you were writing? We know you have. You’ve told us you want that! When a screenshot of the decode won’t do, you can use CloudShark to share individual frame decodes in blog posts, documentation, help forums, and pretty much anywhere else you can write HTML.

Let’s see it in action!

Here’s packet 2 from our TCP Fast open example. Go ahead, click around and check out the packet. (option+click works too for expanding everything under a parent node)

Getting this into a document is pretty easy. Here’s the source:

<iframe src="url" style='width:100%; border: 1px solid #ccc'></iframe>

The url above needs to look defined with the following parameters pointing to the specific frame you want to load.

http://www.cloudshark.org/captures/[capture-id]/decode?frame=[frame-number]&window=yes

Notes

  • Make sure that the capture session you are loading is public or else a login message will appear inside the <iframe>.

  • The ability to load content from your CloudShark Appliance into an <iframe> may be limited by the server’s X-Frame-Options policy. More info here.

  • We can only do this with the decode section of a packet right now.

Tell us about your blog post or article!

If you embed a pcap on CloudShark into your blog or article, let us know! We’ll be happy to retweet it out to our followers. Say hi to us @cloudshark

Get articles like this in your inbox: