Is that possible to dynamically add a web source client to Icecast? - icecast

I would like to build a web app to process an audio stream broadcasted by an Icecast server and send the processed stream back to the Icecast server.
The idea is that this stream becomes a new source client for the Icecast server.
I have two questions:
is there any web source client that allows to send a stream from a browser to an Icecast server?
is that possible to dynamically add this source client to the Icecast server?

Currently there are no Icecast web source clients.
And yes it is possible to dynamically add source clients, since having a <mount> section is generally not required, only if advanced mountpoint configuration is used. So just point the source client to an unused mountpoint location and use the general source password and the username source to identify.

Related

Could I get html of website without server knowing?

Is it possible to get html of webpage without server knowing this. I mean without http request. Aren't all servers connected into internet. If I am right, it is just like filesystem: servers are just child folders and internet is the main folder(or a disk). So if i am correct the whole internet is pretty similar to a filesystem. So (only if i am right) it could be possible, to navigate to one server, and open some random html file in it, just like you open a file in a folder in File explorer. So I am asking: is it possible, and if it is how could I do it.
You're right in that all servers are connected to the internet (although that's something of an oversimplification, the details aren't really relevant here). However, while those servers may have their own internal filesystem, you can't (generally speaking) browse them like a filesystem locally connected to your computer. Your computer and the server need to send data back and forth to get any files. The way this is done is with a protocol. HTTP (HyperText Transport Protocol) is one such protocol. If the server also accepts another protocol, such as FTP (File Transfer Protocol), you may be able to avoid using HTTP and get the files more directly, but in any case, the server still needs to send your computer data, which may be logged.
Is it possible to get html of webpage without server knowing this. I mean without http request.
Normally no, but under certain circumstances, yes. It's a http request (or whatever protocol the resource uses) still though.
Consider a corporate proxy. It downloads a page one time. The page may have a timestamp in it telling the proxy for how long it's allowed to cache it. All subsequent requests for that page from within the corporation may be served by the proxy server only - and the original server out there on the internet who published the webpage in the first place wouldn't know anything about it.
Aren't all servers connected into internet
No.
Many servers providing services to individuals and corporations are not. Some (many) have internet access but do not listen for incomming requests. Others have no internet access whatsoever.
If I am right, it is just like filesystem: servers are just child folders and internet is the main folder(or a disk).
Well... perhaps it could be viewed that way.
So if i am correct the whole internet is pretty similar to a filesystem. So (only if i am right) it could be possible, to navigate to one server, and open some random html file in it, just like you open a file in a folder in File explorer.
So I am asking: is it possible, and if it is how could I do it.
Kind of. You could use a webcrawler to scan a site but unless the server is improperly setup, you'll only have access to what the person behind the server wants you to have access to - and there are usually logs telling that person who (what IP number) did what.
A web server is only going to be listening for HTTP requests and it will only deliver the pages it is setup to deliver. A server may support additional protocols like FTP but again it will only serve up the files it has been told to.
If you want access to a remote computers filling system then you will need a different protocol and access rights on the remote machine. Have a look at SMB 3.0 for ideas.

How to set header/cookies for Titanium Network Socket TCP?

I'm trying download a image file from remote server using Titanium.Network.Socket.TCP.
Server requires header/cookies, how to set cookies?
In HTTP requests, you can use the method setRequestHeader to include your header information.
For example:
xhr.setRequestHeader("X-Auth-Token", "foobar");
Docs: http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.Network.HTTPClient-method-setRequestHeader

embedded http server in c++ for chrome extension native client

i was trying to find some examples that would give me some pointers on how to create an http server within a chrome extension, but haven't had any luck. does anyone know a how to start an NPAPI,NACL http server?
Thanks
Short answer: not possible.
If you want to open a port on a local machine to allow connections, then that is not allowed by the web security model. NaCl runs with the same privileges as JavaScript, no extra holes. However, you may specify extra flags to chrome on start to get more permissions from NaCl, such as open debug port, or get access to raw network sockets.
If you want to 'emulate' an HTTP server to make your extension keep using it regardless of being offline, then it is easier to use the PostMessage API.

How do I copy a file on a http server, from the client?

In the past I used an ftp server, connected via "ftp" from the client and "GET" to copy one file from the remote machine to the local machine.
Is it possible to do the same but with the server only running a http server?
Server: GoAhead Web Server.
Both client and http server on Windows.
The copy can be either initiated from the browser or if need a separate program can be written on the client. (i.e. - any windows api calls to copy a file from http server?)
(Also, the files may not be in the http root web directory but somewhere else on the server....can that happen?)
HTTP servers will only serve up files that are located within the site's document root. If you want to get at files that are outside the document root, you'll have to have a script serve up that file from the server (php, perl, cgi, etc...), or find some way of getting that file "inside" the document root.
To download files within the site's document root, you just hit a url pointing at that file - that's the core point of HTTP - you're just downloading content from the site.
HTTP servers will also not accept uploads without an intermediate script to handle it. If they did, you could upload any file you wanted to any server, anywhere.
What others mentioned about HTTP servers is true, but GoAhead Web Server is not a only a HTTP server. It provides many other features on top of that. And file upload seems possible, with help of a patch. More info:
https://embedthis.com/goahead/
Use WebDav for this purpose.

Access connection event in MS FTP service using Coldfusion?

I'm monitoring a directory for FTP uploads on the server using a CF event gateway. Fine so far, but I want to get at the IP address of the computer uploading the file. The server is Windows Web Server 2008 R2 IIS 7 and Windows FTP 7.5
What I am aiming for is growl type message if the uploaded file has been handled correctly (or else error msg) and for that I need the IP of the sender. (there is no problem with NAT within the LAN)
The FTP service writes a log containing the IP which I could try to correlate with the directory monitoring event, but other than by scraping the log is there another way?
Since ColdFusion has no connection to the FTP service in IIS, you'll have to handle this through the logs. You can, however, use something like LogParser (see this article
from Ray Camden on how to use it to parse an IIS log file.
Good luck!
Dan