Unsupported Media Type
-
Hello… I really appreciate your support on this as it is very important.
I’m using Contact form + Basic Auth to integrate my CF7 with Microsoft Dynamics, this is the website (https://madmoon.online/saraya-aqaba/) So basically I have configured the JSON as per the below screen shot
But when I submit the form online I get the following response from server although I have tested the API with postman app and it is working fine.
-
SERVER RESPONSE:
statusArray
(
[headers] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[date] => Fri, 27 Nov 2020 11:50:04 GMT
[server] => Oracle-HTTP-Server
[x-oracle-dms-ecid] => 005hHL2r07r42zGqywnZ6G00063c0006PR
[x-oracle-dms-rid] => 0:1
[content-type] => text/html; charset=UTF-8
[set-cookie] => Array
(
[0] => visid_incap_1707591=Z8BAJFN2QTWOYzsnkpw+DOvnwF8AAAAAQUIPAAAAAAA6gf3puBeaBZU9wltY8yCC; expires=Sat, 27 Nov 2021 07:59:14 GMT; HttpOnly; path=/; Domain=.eaglehills.com
[1] => incap_ses_872_1707591=JE7Yad0QUn/UvuQ8i/cZDOznwF8AAAAAIpzqV2rN545XJhQ8+NFXEQ==; path=/; Domain=.eaglehills.com
)[x-cdn] => Incapsula
[content-encoding] => gzip
[x-iinfo] => 3-90970921-90970925 NNYN CT(130 263 0) RT(1606477803889 15) q(0 0 4 1) r(5 5) U6
))
[body] => Unsupported Media Type
[response] => Array
(
[code] => 415
[message] => Unsupported Media Type
)[cookies] => Array
(
[0] => WP_Http_Cookie Object
(
[name] => visid_incap_1707591
[value] => Z8BAJFN2QTWOYzsnkpw DOvnwF8AAAAAQUIPAAAAAAA6gf3puBeaBZU9wltY8yCC
[expires] => 1637999954
[path] => /
[domain] => eaglehills.com
[host_only] =>
)[1] => WP_Http_Cookie Object
(
[name] => incap_ses_872_1707591
[value] => JE7Yad0QUn/UvuQ8i/cZDOznwF8AAAAAIpzqV2rN545XJhQ8 NFXEQ==
[expires] =>
[path] => /
[domain] => eaglehills.com
[host_only] =>
))
[filename] =>
[http_response] => WP_HTTP_Requests_Response Object
(
[response:protected] => Requests_Response Object
(
[body] => Unsupported Media Type
[raw] => HTTP/1.1 415 Unsupported Media Type
Date: Fri, 27 Nov 2020 11:50:04 GMT
Server: Oracle-HTTP-Server
X-ORACLE-DMS-ECID: 005hHL2r07r42zGqywnZ6G00063c0006PR
X-ORACLE-DMS-RID: 0:1
Connection: close
Content-Type: text/html; charset=UTF-8
Set-Cookie: visid_incap_1707591=Z8BAJFN2QTWOYzsnkpw+DOvnwF8AAAAAQUIPAAAAAAA6gf3puBeaBZU9wltY8yCC; expires=Sat, 27 Nov 2021 07:59:14 GMT; HttpOnly; path=/; Domain=.eaglehills.com
Set-Cookie: incap_ses_872_1707591=JE7Yad0QUn/UvuQ8i/cZDOznwF8AAAAAIpzqV2rN545XJhQ8+NFXEQ==; path=/; Domain=.eaglehills.com
X-CDN: Incapsula
Content-Encoding: gzip
Transfer-Encoding: chunked
X-Iinfo: 3-90970921-90970925 NNYN CT(130 263 0) RT(1606477803889 15) q(0 0 4 1) r(5 5) U6Unsupported Media Type
[headers] => Requests_Response_Headers Object
(
[data:protected] => Array
(
[date] => Array
(
[0] => Fri, 27 Nov 2020 11:50:04 GMT
)[server] => Array
(
[0] => Oracle-HTTP-Server
)[x-oracle-dms-ecid] => Array
(
[0] => 005hHL2r07r42zGqywnZ6G00063c0006PR
)[x-oracle-dms-rid] => Array
(
[0] => 0:1
)[content-type] => Array
(
[0] => text/html; charset=UTF-8
)[set-cookie] => Array
(
[0] => visid_incap_1707591=Z8BAJFN2QTWOYzsnkpw+DOvnwF8AAAAAQUIPAAAAAAA6gf3puBeaBZU9wltY8yCC; expires=Sat, 27 Nov 2021 07:59:14 GMT; HttpOnly; path=/; Domain=.eaglehills.com
[1] => incap_ses_872_1707591=JE7Yad0QUn/UvuQ8i/cZDOznwF8AAAAAIpzqV2rN545XJhQ8+NFXEQ==; path=/; Domain=.eaglehills.com
)[x-cdn] => Array
(
[0] => Incapsula
)[content-encoding] => Array
(
[0] => gzip
)[x-iinfo] => Array
(
[0] => 3-90970921-90970925 NNYN CT(130 263 0) RT(1606477803889 15) q(0 0 4 1) r(5 5) U6
))
)
[status_code] => 415
[protocol_version] => 1.1
[success] =>
[redirects] => 0
[url] => https://ehsoastage.eaglehills.com/soa-infra/resources/ehonlinesc/EHOnlineLeadCreatePrj!1.0/LeadCreateService/createLead
[history] => Array
(
)[cookies] => Requests_Cookie_Jar Object
(
[cookies:protected] => Array
(
[visid_incap_1707591] => Requests_Cookie Object
(
[name] => visid_incap_1707591
[value] => Z8BAJFN2QTWOYzsnkpw+DOvnwF8AAAAAQUIPAAAAAAA6gf3puBeaBZU9wltY8yCC
[attributes] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[expires] => 1637999954
[httponly] => 1
[path] => /
[domain] => eaglehills.com
))
[flags] => Array
(
[creation] => 1606477803
[last-access] => 1606477803
[persistent] =>
[host-only] =>
)[reference_time] => 1606477803
)[incap_ses_872_1707591] => Requests_Cookie Object
(
[name] => incap_ses_872_1707591
[value] => JE7Yad0QUn/UvuQ8i/cZDOznwF8AAAAAIpzqV2rN545XJhQ8+NFXEQ==
[attributes] => Requests_Utility_CaseInsensitiveDictionary Object
(
[data:protected] => Array
(
[path] => /
[domain] => eaglehills.com
))
[flags] => Array
(
[creation] => 1606477803
[last-access] => 1606477803
[persistent] =>
[host-only] =>
)[reference_time] => 1606477803
))
)
)
[filename:protected] =>
[data] =>
[headers] =>
[status] =>
))
The page I need help with: [log in to see the link]
- The topic ‘Unsupported Media Type’ is closed to new replies.