What embedded HTTP server library options should I look at? [closed] - http

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm looking to write a small proxy server for kicks and giggles.
Apart from the options in libWWW, can anyone recommend any opensource options for the HTTP server and client code? Thinking of a library of some kind similar to libWWW.
Chosen language is C/C++ but open to Java, C#, Python... etc. :-)

If you choose the Java way, take a look at Jetty. It's full featured HTTP server which is very easy to embed and pretty lightweight.

Jetty is great indeed. However, if you want a proxy server, take a look at RabbIT proxy. It is well designed and amenable to modifications. e.g. We implemented a filter that serialized certain XML text in requests to Java objects, and similarly deserialized responses.
There's a wide array of choices depending on what you want to do. For example, to handle NTLM authentication, you have cNTLM (C) or NTLMAPS (Python) or jCIFS library (Java).

If you're considering to make your proxy server in Asynchronous way in C/C++.
Here's some of open source projects you might want to check out:
libevent provides one - good choice for light use. but recursion on large data is not provided..
mongoose - nice API, good abstraction, but it uses select() and realloc() based i/o buffer, Also dual license for commercial use.
libevhtp - developed as a replacement of libevent's http module.
GNU's libmicrohttpd - good feature set.
libasyncd - I'm the author. It features general asynchronous framework and comes with HTTP handler.
I'm only able to make 2 links on my answer, but you can easily find the project homes by googling them.

Related

A synchronous http client for rust? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm looking for a low overhead HTTP client in Rust to create a custom runtime for AWS lambda. All the implementations that I find (including the official runtime from AWS) are based on hyper/tokio and I don't want the overhead nor the added binary weight.
Do you know one ? Is there a reason all frameworks are based on tokio ?
Thanks,
Is there a reason all frameworks are based on tokio ?
Tokio crate is contributed by many people and maintained by them as well. Since it is developed and maintained well, It is a wise idea to put new crates on top of this base.
This is why many libraries are depending Tokio and it's variant/relevant crates.
Since Tokio is based on minimal sub crates like tokio-tcp, tokio-codec , tokio-io, tokio-executor etc. these crates can be imported seperately so your release size will be considerably small.
If you insist on not using any tokio dependency, there are still some options but they will be developed and maintained by relatively less contributor.
Here are some HTTP Client options which are not using Tokio:
Ureq
Minreq
cHttp
easy-http-request (You can try to build http client on top of that)
cabot
There are plenty options apart from these alternatives, but in my opinion I import the minimal tokio relevant crates and implement my application on top of them.

Open source audio fingerprinting of broadcast mp3 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm creating an app that recognizes the songs of some web radio feeds, I would need to parse feeds to find songs, I found a paid service (ACRCloud) that allows you to do so, but the cost is high given the number of radios that I would like to analyze, so I searched a bit and found Echoprint, I could use it for my purpose? Would be suitable? Why don't I find the documentation ... I don't know, maybe there are better solutions? Thank you
Echoprint would generate good fingerprints for your usage (exact copy of musics, recognition time in the scale of tens of seconds).
However, you will have to maintain a database of known musics. Which is difficult to keep up to date.
The mothership of Echoprint, the Echo Nest, offered music recognition in the past, but this seems now over. Though, a server designed as fingerprint storage and retrieval is free to use.
What you could do to generate a database is:
fetch metadata from some streams, when available.
download the youtube version of those musics. See the youtube-dl tool for that (disclaimer, this may be violating the TOS of youtube)
inject fingerprints in the echo nest server.
This could bootstrap efficiently your system. But you may have a hard time reaching the performance of paying services like ACRCloud and similar. It depends on your requirements.
We run a service for our website which follows 9 radio stations, using the internet stream of those stations. We show real time what is playing on those stations.
The library (in c#) and a database of 1.3 million fingerprints can be found at:
https://github.com/nelemans1971/AudioFingerprinting
Example programs include the software to follow a radio station.

Network Programming? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I want to leave strictly desktop programming and start exploring networking. I want to make a little program that just sends data from computer A to B running the same program.
Just a few questions before I start...
1) What is a better language for net programming Python or C#?
2) Could you recommend some stuff to help me understand how data is sent over the web?
Thanks!
It really depends on what you're doing. Both Python and C# have very capable modules for network communication - I'd say you'd be equally well-off in either given no knowledge of what you're doing. The decision between Python and C# will probably come down to whether your application lends itself more to the dynamic typing of Python or the static typing of C#.
As for your second question, I've always found it interesting to look at network traffic using a packet sniffer such as Wireshark. Browse to a website in Firefox and (assuming GZip encoding is disabled in the web-browser or on the server) you'll be able to see how the data is transferred. This works for other protocols as well. Reading the RFCs for various protocols can also give you some insight. For a few examples, IRC (1459), FTP (959), HTTP 1.1 (2616). You can find them at the Internet Engineering Task Force website.
Both languages are equally capable. It is a matter of personal preference.
What resources you need will depend on the application you intend to write. The two most important things you will need to know:
The Application Layer, Transport Layer, & Internet Layers of the Internet
Socket Programming
You're diving into a very broad subject, with a lot of information. I found this book to be helpful to me.
I do not want to compare languages, but as you wanted recommendation, I recommend you python and twisted framework
I think C++ is the best, if you consider the efficiency and hardware interactions.

Web TWAIN scanning solution for ASP.Net? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I know some of you will discourage scanning through a web page, unfortunately, it is a requirement.
I want to view my options in the situation, and maybe, some of you may have already gone through this and had a workable solution.
Problem is, we need to have a universal approach in scanning documents through the webpage without any external helper apps that does this for us.
I know this is a tall order, I would simply want to know the best next thing.
Thank you!
You can't do it with just a browser and JavaScript, full stop, you'll need to include something else -- a Java applet, a .Net "No Touch Deployment" application (mostly IE-only), a Flash or Shockwave application, something like that. In the Windows world, Flash has a huge installed base on browsers, but I don't know if it can do what you want (not knowing much about Flash). Next up would be a signed Java applet.
The user will then need to give your thingy permission to access local resources, a process that varies depending on the technology used. It's quite a simple process with a signed Java applet, much more involved and awkward for the end user with a .Net "No Touch Deployment" app.
I've seen this done with a Java applet successfully. ActiveX might also work.
Here is what appears to be a working TWAIN applet.
Here is question with answers related to TWAIN and Java.
I've successfully used Morena for implementing web scanning. It requires only that the user have Java installed. (With older versions of Java you can run out of memory when processing the scanned image. I had to cut large images into 100 pixel strips and send them individually to the server.)
Here's a small scan-to-email project that I used Morena with.

Book to know more about XML Web Services in ASP.NET [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am involved in a project with UI comprising mainly of Action Script.
My role as an ASP.NET programmer is to pull data from DB using Web Services and
supply it as XML to the Action Script.
It would help me immensely if I could learn more about XML Web Services in ASP.NET.
I searched for a new book in this topic but couldn't find any book completely dedicated to the topic.
I have found many books published at around 2002 or so.
I would like to know whether there is a good new book that would be handy for my project.
It would be better if they use 3.5 technologies like Linq to XML and all.
Thank you.
If you're only just starting to do web services in ASP.NET, I would strongly recommend you go and check out WCF. It's the current and future standard for communications between machines - web services and a lot more. The "old-style" ASMX web services are on their way out.
The book I always recommend to get up and running in WCF quickly is Learning WCF by Michele Leroux Bustamante. She covers all the necessary topics, and in a very understandable and approachable way. This will teach you everything - basics, intermediate topics, security, transaction control and so forth - that you need to know to write high quality, useful WCF services.
alt text http://ecx.images-amazon.com/images/I/41wYa%2BNiPML._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA240_SH20_OU01_.jpg
Also, I'd strongly recommend the Pluralsight series of WCF screen casts. I love books and they are great to read up on stuff - but sometimes, I find it easier to actually see someone show how to really code the thing and see it work and run. Highly recommended, 10-20 minute for each video, very informative and useful indeed!

Resources