By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,978 Members | 1,831 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,978 IT Pros & Developers. It's quick & easy.


P: 5
I got a web service API. I know basic knowledge web services. I am trying to test the web service through the postman. but I could not able to succeed. if any have answer please help me. I got sample code nodejs. below I gave web services API. please, anyone, see and how to handle that data.

POST /api/v1/sessions
Date: Wed, 28 Nov 2018 06:22:27 -0000
Content-Type: application/json;charset=utf-8
Content-MD5: wQsVzvcXwtwzoiZ13iAVWA==

"password": "sym",
"username": "sym"

they gave their own json commander tools. if I send this request in JSON commander it is giving the proper response.if I use the same request. I tested by the is not working. and getting this error response also

"status" : 400,
"code" : 40001,
"resource" : null,
"properties" : [ ],
"message" : "The Date header is invalid.",
"developerMessage" : "The Date header is invalid. Make sure that a the Date or X-Aah-Date header is set and has a valid format."
Attached Images
File Type: jpg apicommander.jpg (64.8 KB, 58 views)
Nov 30 '18 #1
Share this Question
Share on Google+
7 Replies

Expert 100+
P: 1,043
You should read the error message, and try to understand what is meant with that.

Especially the line: "The Date header is invalid ..."

P.S. Its meaning is that the header (the one with 'Date:....') has an invalid date.
Nov 30 '18 #2

P: 5
Do you know how to set data header
Dec 1 '18 #3

Expert 100+
P: 1,043
Do you have more info on which tool you are using? I do not know a tool called 'Jason Commander' (from the image you posted.)
Dec 1 '18 #4

P: 5
I want to same request use through postman it possible
Dec 1 '18 #5

Expert 100+
P: 1,043
Maybe you should read a turorial first?

Dec 1 '18 #6

P: 5
My Date format wrong order. I want this format date and time Monday, 03-December-18 07:41:29 UTC.. how to do postman. Postman time zone time differ. I need this time zone. anyone can help me
Dec 3 '18 #7

Expert 100+
P: 1,043
The valid options for this Date in het header of an HTTP message are described in some RFC's.

Chapter 14.8 (
The Date general-header field represents the date and time at which the message was originated, having the same semantics as orig-date in RFC 822. The field value is an HTTP-date, as described in section 3.3.1; it MUST be sent in RFC 1123 [8]-date format.
Date = "Date" ":" HTTP-date
An example is
Date: Tue, 15 Nov 1994 08:12:31 GMT

chapter 5.2.14 (

That's why you should not change the date format wich is used in the header of a HTTP message.
Dec 6 '18 #8

Post your reply

Sign in to post your reply or Sign up for a free account.