• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

How do I perform this linux task in Windows? (now a programming question)

Schadenfroh

Elite Member
(I believe that the command stated in the below link is a linux command)
This would solve all of my problems if it could be done in windows or better with in VB.NET

I am thinking that I can do it with something similar to Simple GET Requests on this page.


I have a feeling this is going to be a very stupid post for I have not slept in a while and I am not thinking clearly, but I am so close to solving the 2nd from the last biggest hurdle on this program that I have been working on for a week.

Say I want to get the header lines from 64.62.194.11:8095 and nothing else (especially not a streaming .mp3). For I only want the station name that is listed there if you go there in firefox.
 
Actually the GET command comes with libwww-perl and is just a symlink to lwp-request, so if you have perl installed you might have it already.

The VB.Net stuff looks like it might work but you'll need to figure out how to work in the 'Icy-MetaData:1' part of the request otherwise you'll end up with the whole stream.
 
Ahh, I figured that it was probably not a part of the OS. I was hoping to perform this task within vb.net. I have been messing around with this and curl (which can get the header and write it to a text file) works, but it streams the mp3 as well. The text file grows large quickly and the shortest time that I can set is 1 sec, for it does not allow nonintegers in the arguments. Again, I would prefer a way that does not involve curl and keep it all self contained.

Thanks for clearing the "get question" up though, nothinman.
 
I came across that article earlier, Nothinman, but thanks nonetheless for sticking with me and trying to help. I could not get that to compile to due a problem with "printHeaders", is there a specific library that the statement is under such as how I had to manually put in system.net.* for the others?

Anyways, I think that I have found a C# program that should do the trick and I did my best to convert it into VB.NET 2005 code (from my limited knowledge of C#, thankfully it is similar to C++ (which I know).

C# code here

Here is what I have converted over, it does not work, saying that the server has committed a protocol violation in the command prompt (this is a valid shoutcast server that I have put in, btw).

Here is my VB.NET code that I hand "translated" from C# and that is just the connection part, I still have yet to translate the part where I actually get the station name and such, just throwing this idea around to see you guys think that it could work or if I have wasted enough of my last week off before summer school.
 
Back
Top