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

2019-10-22 Thread Jan Ehrhardt via curl-library
Andreas Falkenhahn via curl-library in gmane.comp.web.curl.library (Sat,
19 Oct 2019 18:40:49 +0200):
>Please excuse this slightly off-topic question but I think this is the best
>place to ask about it ;)
>
>So unfortunately, my old test case HTTP server which sent HTTP responses 
>without
>the Content-Length field seems to be gone. Does anybody happen to have a URL
>for a HTTP server which responds without setting Content-Length?

Any server that uses an index.php which does not set the Content-Length.
-- 
Jan

---
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

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

2019-10-22 Thread Aleksandar Lazic via curl-library
Am 21.10.19 um 14:57 schrieb Andreas Falkenhahn via curl-library:
> On 20.10.2019 at 23:47 Jeroen Ooms via curl-library wrote:
> 
>> http://www.httpbin.org/stream/100
> 
> This uses chunked transfer mode...
> 
>> http://www.httpbin.org/drip?duration=2=10=200=2
> 
> ...and this sets Content-Length.
> 
> So still not quite what I'm looking for. My old test site was 
> http://www.google.com/ig/api?weather=muenster=de/ but this doesn't exist 
> any more :/

What's the problem with the headers and transfer mode?

Maybe you can use build your own server ala

https://gowebexamples.com/http-server/

or in your preferred language.

Regards
Aleks
---
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

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

2019-10-21 Thread Nicolas Mora via curl-library
21 octobre 2019 08:57 "Andreas Falkenhahn via curl-library" 
 a écrit:

> 
> So still not quite what I'm looking for. My old test site was
> http://www.google.com/ig/api?weather=muenster=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

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

2019-10-21 Thread Andreas Falkenhahn via curl-library
On 20.10.2019 at 23:47 Jeroen Ooms via curl-library wrote:

> http://www.httpbin.org/stream/100

This uses chunked transfer mode...

> http://www.httpbin.org/drip?duration=2=10=200=2

...and this sets Content-Length.

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

-- 
Best regards,
 Andreas Falkenhahnmailto:andr...@falkenhahn.com

---
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

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

2019-10-21 Thread Daniel Stenberg via curl-library

On Sat, 19 Oct 2019, Andreas Falkenhahn via curl-library wrote:

So unfortunately, my old test case HTTP server which sent HTTP responses 
without the Content-Length field seems to be gone. Does anybody happen to 
have a URL for a HTTP server which responds without setting Content-Length?


curl's test suite HTTP test server can do this, but I'm also pretty sure it's 
probably not very suitable for others to use. Our test server is basically as 
dumb as you can get it and just sends whatever we instruct it via the test 
files.


--

 / daniel.haxx.se | Get the best commercial curl support there is - from me
  | Private help, bug fixes, support, ports, new features
  | https://www.wolfssl.com/contact/
---
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

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

2019-10-20 Thread Jeroen Ooms via curl-library
On Sat, Oct 19, 2019 at 6:47 PM Andreas Falkenhahn via curl-library
 wrote:
>
> Please excuse this slightly off-topic question but I think this is the best 
> place to ask about it ;)
>
> So unfortunately, my old test case HTTP server which sent HTTP responses 
> without the Content-Length field seems to be gone. Does anybody happen to 
> have a URL for a HTTP server which responds without setting Content-Length?

Anything that streams? Maybe:

http://www.httpbin.org/stream/100
http://www.httpbin.org/drip?duration=2=10=200=2
---
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

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

2019-10-20 Thread Andreas Falkenhahn via curl-library
Thanks, but this seems to use chunked mode. I'm looking for a server which 
sends data with neither chunked nor content-length set...

On 19.10.2019 at 21:35 Michał Janiszewski wrote:

> Perhaps GIFsockets would serve your need?
> http://gifsockets.twolfson.com/
> and in particular:
> http://gifsockets.twolfson.com/image.gif

> On Sat, 19 Oct 2019 at 18:43, Andreas Falkenhahn via curl-library
>  wrote:

>> Please excuse this slightly off-topic question but I think this is the best 
>> place to ask about it ;)

>> So unfortunately, my old test case HTTP server which sent HTTP responses 
>> without the Content-Length field seems to be gone. Does anybody happen to 
>> have a URL for a HTTP server which responds without setting Content-Length?

>> --
>> Best regards,
>>  Andreas Falkenhahn  mailto:andr...@falkenhahn.com

>> ---
>> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
>> Etiquette:   https://curl.haxx.se/mail/etiquette.html





-- 
Best regards,
 Andreas Falkenhahnmailto:andr...@falkenhahn.com


---
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

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

2019-10-19 Thread Michał Janiszewski via curl-library
Perhaps GIFsockets would serve your need?
http://gifsockets.twolfson.com/
and in particular:
http://gifsockets.twolfson.com/image.gif

On Sat, 19 Oct 2019 at 18:43, Andreas Falkenhahn via curl-library
 wrote:
>
> Please excuse this slightly off-topic question but I think this is the best 
> place to ask about it ;)
>
> So unfortunately, my old test case HTTP server which sent HTTP responses 
> without the Content-Length field seems to be gone. Does anybody happen to 
> have a URL for a HTTP server which responds without setting Content-Length?
>
> --
> Best regards,
>  Andreas Falkenhahn  mailto:andr...@falkenhahn.com
>
> ---
> Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
> Etiquette:   https://curl.haxx.se/mail/etiquette.html



-- 
Michal Janiszewski
---
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

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

2019-10-19 Thread Andreas Falkenhahn via curl-library
Please excuse this slightly off-topic question but I think this is the best 
place to ask about it ;)

So unfortunately, my old test case HTTP server which sent HTTP responses 
without the Content-Length field seems to be gone. Does anybody happen to have 
a URL for a HTTP server which responds without setting Content-Length?

-- 
Best regards,
 Andreas Falkenhahn  mailto:andr...@falkenhahn.com

---
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html