Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8987717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T21:51:36+00:00 2026-06-15T21:51:36+00:00

While making a SoundCloud desktop client in VB.net I ran into trouble: I simply

  • 0

While making a SoundCloud desktop client in VB.net I ran into trouble: I simply cannot like and unlike tracks.

Logging in, playing music, Getting likes, … all perfectly working, but liking tracks gives me a 404 (File not found) error.

This is the code I’m using:

Dim request As WebRequest = WebRequest.Create("https://api.soundcloud.com/me/favorites" & "?client_id=" & Soundcloud.client_ID & "&oauth_token=" & _Token)
request.Method = "PUT"
Dim postData As String = Track.id
Dim byteArray As Byte() = Encoding.UTF8.GetBytes(postData)
request.ContentType = "application/x-www-form-urlencoded"
request.ContentLength = byteArray.Length
Dim dataStream As Stream = request.GetRequestStream()
dataStream.Write(byteArray, 0, byteArray.Length)
dataStream.Close()
Dim response As WebResponse = request.GetResponse()
Console.WriteLine(CType(response, HttpWebResponse).StatusDescription)
dataStream = response.GetResponseStream()
Dim reader As New StreamReader(dataStream)
Dim responseFromServer As String = reader.ReadToEnd()
Console.WriteLine(responseFromServer)
reader.Close()
dataStream.Close()
response.Close()

The developers site doesn’t really tell much, it only says this:
“GET, PUT, DELETE /users/{id}/favorites/{id} track favorited by the user”

Anyone able to help? Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T21:51:36+00:00Added an answer on June 15, 2026 at 9:51 pm

    I replaced the URL with “api.soundcloud.com/me/favorites/”; & Track.id & “?client_id=” & Soundcloud.client_ID & “&oauth_token=” & _Token

    That didn’t work, but it did once I set the PostData to String.Empty… Thanks anyways!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just ran into this issue while making a GET request to a node.js
While making my code, i ran into a strange problem. I hold 1 file
I am facing a problem while making Excel's LinEST function. My program goes like
Possible Duplicate: Strip html from strings in python While making a small browser like
While making a WPF application I would like to change the default FocusVisualStyle (the
While making a webpage I've noticed a huge decrease in performance(client side) when I've
I have a trouble while making header from Datatable's values. I have a text
i have a little trouble while making my first play application. I got a
While making an access database, I'd like to make it as idiot proof as
I'm running into a strange thing while making a game in VC++. I'm using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.