Jump to content

[Solved] Problems File_Get_Contents And Curl To Link Soundcloud


movid

Recommended Posts

Stevie is blocked by Soundcloud:

rax@rax.heliohost.org [~]# wget -O=sc.tmp "http://api.soundcloud.com/tracks?q=Adventure\&limit=5\&client_id=7fda73e4303db4146b1b2145944d3e1c"
--2016-08-09 09:16:29--  http://api.soundcloud.com/tracks?q=Adventure&limit=5&client_id=7fda73e4303db4146b1b2145944d3e1c
Resolving api.soundcloud.com... 72.21.91.127
Connecting to api.soundcloud.com|72.21.91.127|:80...

 

It never connects, sits for several minutes then times out.

 

On a local server of mine:

root@acmine:~# wget -O=sc.tmp http://api.soundcloud.com/tracks?q=Adventure\&limit=5\&client_id=7fda73e4303db4146b1b2145944d3e1c
--2016-08-09 12:21:01--  http://api.soundcloud.com/tracks?q=Adventure&limit=5&client_id=7fda73e4303db4146b1b2145944d3e1c
Resolving api.soundcloud.com (api.soundcloud.com)... 72.21.91.127
Connecting to api.soundcloud.com (api.soundcloud.com)|72.21.91.127|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9383 (9.2K) [application/json]
Saving to: `=sc.tmp'

100%[===================================================================================================================>] 9,383       --.-K/s   in 0.001s

2016-08-09 12:21:02 (7.76 MB/s) - `=sc.tmp' saved [9383/9383]

root@acmine:~#

Looks good. That sc.tmp contains a JSON result.

Link to comment
Share on other sites

On the command line you need to escape your ampersands like this

http://api.soundcloud.com/tracks?q=Adventure\&limit=5\&client_id=7fda73e4303db4146b1b2145944d3e1c
Otherwise it breaks the command up and tries to run it in the background etc.

 

Resolving api.soundcloud.com... 72.21.91.127

Connecting to api.soundcloud.com|72.21.91.127|:80...

So, here's the problem:

72.21.91.127 # DOS 42 connections - Thu Jul 28 13:17:47 2016
Soundcloud doesn't have us blocked. We have them blocked...
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...