confirming proper heders

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux