Re: Accessing information from applications
Re: Accessing information from applications
- Subject: Re: Accessing information from applications
- From: Jens Alfke <email@hidden>
- Date: Thu, 02 Jun 2011 11:59:52 -0700
On Jun 2, 2011, at 11:50 AM, Abhinav K Tyagi wrote:
> Although i can filter the information based on the extensions of files but how can i get the information if the opened file is a url. The best case can be of an audio stream or something like that.
URLs aren’t files. All the kernel knows about a network connection is the IP address and TCP port number it’s connected to. It has no idea what protocol it’s using (HTTP, FTP, IMAP, whatever) or any protocol-specific details like the HTTP path. So no, you can’t derive a URL from the list of open sockets. All you can get is
???://name.of.host:port/????
If you want to sniff all HTTP traffic, which will let you see the paths in the request lines, you can use something like tcpdump. (But it would probably be hard to identify only the HTTP traffic, unless you limit yourself to port 80.)
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden