Mark,

this looks fine. If you inspect the headers that curl *send* to the server, 
you'll see a "Expect: 100-continue". Read this as the client saying "Server, I 
expect you to send me a 100 response first, then I'll send you the request 
body, okey?"

Technical description in https://tools.ietf.org/html/rfc7231

Cheers, Stefan

> Am 23.05.2019 um 22:02 schrieb Mark DM <markos...@gmail.com>:
> 
> Hello, I have a project I have been working on where I need to dend "201 
> Created" then "Loction http://IPADDRESS/result.
> 
> I am setting headers i PHP and have checked in wireshark and although I did 
> see 201 Creater and Location http://IPADDRESS/result I was later informed 
> that the PHP code I was using needed to have a comma removed  between 201 and 
> Created. I then re-confirmed and see no difference.
> 
> My headers being set
> header('HTTP/1.1 201 Created');
> header('Location: http://localhost/eSCL/Scans', false);
> header( 'Expires: Sat, 26 Jul 1997 05:00:00 GMT' ); 
> header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); 
> header( 'Cache-Control: no-store, no-cache, must-revalidate' ); 
> header( 'Cache-Control: post-check=0, pre-check=0', false ); 
> header( 'Pragma: no-cache' ); 
> 
> 
> I used cURL to check the headers and this is what I get. I am concerned for 
> the "100  Continue" and the blank line.
> 
> HTTP/1.1 100 Continue
> 
> HTTP/1.1 201 Created
> Date: Thu, 23 May 2019 19:57:37 GMT
> Server: Apache/2.4.18 (Ubuntu)
> Location: 
> http://localhost/eSCL/Scans
> 
> Expires: Sat, 26 Jul 1997 05:00:00 GMT
> Last-Modified: Thu, 23 May 2019 19:57:37 GMT
> Cache-Control: no-store, no-cache, must-revalidate
> Cache-Control: post-check=0, pre-check=0
> Pragma: no-cache
> Content-Length: 6
> Content-Type: text/html; charset=UTF-8
> 
> I have also looked at wireshark traces and Firefox console but none of this 
> tells me what is "correct".
> 
> Thanks for any help
> 
> Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to