Click here to Skip to main content
15,890,995 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to be able to access LastFM's API through my C# Window's Form application. I want to be able to use LastFM's API search. How can I make a request?

"http://ws.audioscrobbler.com/2.0/?method=album.getinfo&api_key=" + apikey + "&artist=" + artist + "&album=" + album
Posted

Use the class System.Net.HttpWebRequest. You will need to use compile time class System.Net.WebRequest, as the runtime type is determined by the URI in its factory method Create.

You will find some code sample here:
http://msdn.microsoft.com/en-us/library/system.net.webrequest.aspx[^].

—SA
 
Share this answer
 
You can do a HTTP post to the URL and see what you get back in a response.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900