79724544

Date: 2025-08-04 06:19:44
Score: 1
Natty:
Report link

I found the answer after visiting official Oracle forum. this line is determine the length of my body. When I send an english character it's accurate but some arabic letters is more than one byte.

the solution is to replace this line in my code:

UTL_HTTP.SET_HEADER(l_http_req, 'Content-Length', DBMS_LOB.GETLENGTH(l_payload));

with this line:

utl_http.set_header( l_http_req, 'Content-Length', utl_raw.length( utl_i18n.string_to_raw( l_payload, 'AL32UTF8' ) ) );

Thank you @Keon Lostrie for your help.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): solution is
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Keon
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Karam Alem