• Jatin Gupta 21
  • NEWBIE
  • 10 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 10
    Replies
I am using HTTP POST for submittig data to an external application.
With Postman the request gives Resonse as expected with HTTP response code of 200.
But while doing the same with apex class and HTTP Request/Response the response is Bad Request, StatusCode=400.
I have tried with different content-type but the error persists.Can anybody help me out ?
 
Is there any specific reason for the following error:
Status=Length Required, StatusCode=411
I am using http post in apex.
I am using HTTP POST for submittig data to an external application.
With Postman the request gives Resonse as expected with HTTP response code of 200.
But while doing the same with apex class and HTTP Request/Response the response is Bad Request, StatusCode=400.
I have tried with different content-type but the error persists.Can anybody help me out ?