curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Looking for a HTTP test server which doesn't send Content-Length

From: Nicolas Mora via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 21 Oct 2019 13:26:29 +0000

21 octobre 2019 08:57 "Andreas Falkenhahn via curl-library" <curl-library_at_cool.haxx.se> a écrit:

>
> So still not quite what I'm looking for. My old test site was
> http://www.google.com/ig/api?weather=muenster&hl=de but this doesn't exist any more :/
>

The way I would do it is either:
- implement a fake webservice, it would a simple program that listens to a socket and answers whatever is hardcoded
- use an existing webservice library and update the source code to overwrite the content-length with what you expect

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-10-21