cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Crash in curl library while processing HTTP HEAD response

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 18 Aug 2016 14:22:25 +0200 (CEST)

On Thu, 18 Aug 2016, isshed wrote:

> Actually server is using HTTP/1.1 but the header response is coming as
> plain text "404 - Error: Page Not Found.\r\n" and without any headers.

Can you show us the *exact* bytes the server return? Does the response start
with a status line at all? "HTTP/1.1 200 OK" style.

> My application is using HTTPS and sending HEAD request, and is getting
> the above response.

Is HTTPS a requirement or can to get the problem against a test server using
plain HTTP?

> Is there anyway I can setup server as I can see this problem with one of my
> customer servers.

For some quick experiments to send "raw" data, using 'nc' is perfect:

Run 'nc -p 8080 -l', connect your application to localhost:8080 and then type
in the response in the window where nc runs and break control-c.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html
Received on 2016-08-18