• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Accessing information from applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Accessing information from applications (From: Abhinav K Tyagi <email@hidden>)
 >Re: Accessing information from applications (From: Abhinav K Tyagi <email@hidden>)

  • Prev by Date: Re: Code style (was: Notify With Parameters)
  • Next by Date: Re: Accessing information from applications
  • Previous by thread: Re: Accessing information from applications
  • Next by thread: Re: Accessing information from applications
  • Index(es):
    • Date
    • Thread