I want to POST method to my REST API with ESP8266

How to use <ESP8266HTTPClient.h> to request method POST instantly like in POSTMAN api test?
I just use URL to POST request method in postman and its work.
i can post with postman, but in arduino i still get 505 eror message, here the arduino code using ESP8266Client.h library

void loop() {
 
 if(WiFi.status()== WL_CONNECTED){   
 
   HTTPClient http;   
 
   http.begin("http://iot-my.herokuapp.com/api/user/ 2E 84 53 63/increment_points");   
   http.addHeader("Content-Type", "application/json");  
 
   int httpCode = http.POST("");   
   String payload = http.getString();                  
 
   Serial.println(httpCode);   
   Serial.println(payload);    
 
   http.end();  
 
 }else{
 
    Serial.println("Error in WiFi connection");   
 
 }
 
  delay(30000);
 
}

and here my test POST method screenshot with postman (i dont use any setting, just use URL)

Hey i wouldn't post my credentials on a public forum !

i don't care about that :smiley:

Ok..

Ok after a google i found this and answer 5 gave me an indication. You can not post a whitespace in a URL line like that or whatever comes after will be considered the http version nr. so, here is what you should do. try this : http.begin("http://iot-my.herokuapp.com/api/user/%202E%2084%2053%2063/increment_points");  line instead.