• 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: Issue with the downloading url
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue with the downloading url


  • Subject: Re: Issue with the downloading url
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Fri, 7 Nov 2008 19:14:23 +0100

This is a specific shoutcast error. Probably an anti-ripper hack. ( http://all-streaming-media.com/streaming-media-faq/faq-SHOUTcast-ripper.htm ).
I found it was the user-agent by comparing the request send by Safari (that works) and the one send by my test application (using Wireshark to sniff the request and the response: http://www.wireshark.org/ ).



Le 7 nov. 08 à 17:46, Arnab Ganguly a écrit :

Hi,
Awesome!!!!
Thanks very much for all the detailed information.It is working perfectly and initially I got the response as "Response status: 403, forbidden" and once I framed the request "[request setValue:@"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en-us) AppleWebKit/528.5+ (KHTML, like Gecko) Version/4.0 Safari/528.1"
forHTTPHeaderField:@"User-Agent"];" it worked perfectly and I got a 200 OK response.


One thing I would like to know from where can I get these information about how the server understands the different types of request from "Unknown Server" ?

Thanks
Arnab

On Fri, Nov 7, 2008 at 8:18 PM, Jean-Daniel Dupas <email@hidden > wrote:
And another point. It look like shoutcast (for silly reason probably) forbidden request from unknown user agent.
To workaround this problem, just set the request user agent to something shoutcast know, for example:


NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL: [NSURL
URLWithString :@"http://yp.shoutcast.com/sbin/tunein-station.pls?id=9907";]];


[request setValue:@"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en-us) AppleWebKit/528.5+ (KHTML, like Gecko) Version/4.0 Safari/528.1"
forHTTPHeaderField:@"User-Agent"];



_______________________________________________

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: 
 >Issue with the downloading url (From: "Arnab Ganguly" <email@hidden>)
 >Re: Issue with the downloading url (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Issue with the downloading url (From: "Arnab Ganguly" <email@hidden>)
 >Re: Issue with the downloading url (From: Jean-Daniel Dupas <email@hidden>)
 >Re: Issue with the downloading url (From: "Arnab Ganguly" <email@hidden>)
 >Re: Issue with the downloading url (From: "Arnab Ganguly" <email@hidden>)

  • Prev by Date: Re: Notification when window is closing?
  • Next by Date: Re: Performance problems with doubleClickAtIndex
  • Previous by thread: Re: Issue with the downloading url
  • Next by thread: 10.4 square button backgrounds go white when clicked
  • Index(es):
    • Date
    • Thread