✅ Envio para ServiceNow

Dados Enviados:

Array
(
    [caller_id] => João da Silva
    [email] => 
    [celular] => 
    [matricula] => 
    [rh_reason] => 
    [rh_description] => 
    [origem] => Webhook de Teste Elementor
)

Resposta:

Array
(
    [headers] => WpOrgRequestsUtilityCaseInsensitiveDictionary Object
        (
            [data:protected] => Array
                (
                    [server] => snow_adc
                    [date] => Mon, 03 Nov 2025 21:08:24 GMT
                    [content-type] => application/json;charset=UTF-8
                    [set-cookie] => Array
                        (
                            [0] => BIGipServerpool_vli=3cc8af635a77dc7217aa47d0b04b1615; httponly; secure; samesite=None; path=/
                            [1] => JSESSIONID=15AEACF863E03EC3DF63BBA8705A97A1; Path=/; HttpOnly; Secure; SameSite=None
                        )

                    [server-timing] => sem_wait;dur=0, sesh_wait;dur=0
                    [content-encoding] => gzip
                    [www-authenticate] => Basic realm="Service-now"
                    [x-content-type-options] => nosniff
                    [pragma] => no-store,no-cache
                    [cache-control] => no-cache,no-store,must-revalidate,max-age=-1
                    [expires] => 0
                    [strict-transport-security] => max-age=63072000; includeSubDomains
                )

        )

    [body] => {"error":{"message":"User Not Authenticated","detail":"É necessário apresentar informações de autenticação"},"status":"failure"}
    [response] => Array
        (
            [code] => 401
            [message] => Unauthorized
        )

    [cookies] => Array
        (
            [0] => WP_Http_Cookie Object
                (
                    [name] => BIGipServerpool_vli
                    [value] => 3cc8af635a77dc7217aa47d0b04b1615
                    [expires] => 
                    [path] => /
                    [domain] => vli.service-now.com
                    [port] => 
                    [host_only] => 1
                )

            [1] => WP_Http_Cookie Object
                (
                    [name] => JSESSIONID
                    [value] => 15AEACF863E03EC3DF63BBA8705A97A1
                    [expires] => 
                    [path] => /
                    [domain] => vli.service-now.com
                    [port] => 
                    [host_only] => 1
                )

        )

    [filename] => 
    [http_response] => WP_HTTP_Requests_Response Object
        (
            [data] => 
            [headers] => 
            [status] => 
            [response:protected] => WpOrgRequestsResponse Object
                (
                    [body] => {"error":{"message":"User Not Authenticated","detail":"É necessário apresentar informações de autenticação"},"status":"failure"}
                    [raw] => HTTP/1.1 401 Unauthorized
Server: snow_adc
Date: Mon, 03 Nov 2025 21:08:24 GMT
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Connection: close
Set-Cookie: BIGipServerpool_vli=3cc8af635a77dc7217aa47d0b04b1615; httponly; secure; samesite=None; path=/
Set-Cookie: JSESSIONID=15AEACF863E03EC3DF63BBA8705A97A1; Path=/; HttpOnly; Secure; SameSite=None
Server-Timing: sem_wait;dur=0, sesh_wait;dur=0
Content-Encoding: gzip
WWW-Authenticate: Basic realm="Service-now"
X-Content-Type-Options: nosniff
Pragma: no-store,no-cache
Cache-Control: no-cache,no-store,must-revalidate,max-age=-1
Expires: 0
Strict-Transport-Security: max-age=63072000; includeSubDomains

{"error":{"message":"User Not Authenticated","detail":"É necessário apresentar informações de autenticação"},"status":"failure"}
                    [headers] => WpOrgRequestsResponseHeaders Object
                        (
                            [data:protected] => Array
                                (
                                    [server] => Array
                                        (
                                            [0] => snow_adc
                                        )

                                    [date] => Array
                                        (
                                            [0] => Mon, 03 Nov 2025 21:08:24 GMT
                                        )

                                    [content-type] => Array
                                        (
                                            [0] => application/json;charset=UTF-8
                                        )

                                    [set-cookie] => Array
                                        (
                                            [0] => BIGipServerpool_vli=3cc8af635a77dc7217aa47d0b04b1615; httponly; secure; samesite=None; path=/
                                            [1] => JSESSIONID=15AEACF863E03EC3DF63BBA8705A97A1; Path=/; HttpOnly; Secure; SameSite=None
                                        )

                                    [server-timing] => Array
                                        (
                                            [0] => sem_wait;dur=0, sesh_wait;dur=0
                                        )

                                    [content-encoding] => Array
                                        (
                                            [0] => gzip
                                        )

                                    [www-authenticate] => Array
                                        (
                                            [0] => Basic realm="Service-now"
                                        )

                                    [x-content-type-options] => Array
                                        (
                                            [0] => nosniff
                                        )

                                    [pragma] => Array
                                        (
                                            [0] => no-store,no-cache
                                        )

                                    [cache-control] => Array
                                        (
                                            [0] => no-cache,no-store,must-revalidate,max-age=-1
                                        )

                                    [expires] => Array
                                        (
                                            [0] => 0
                                        )

                                    [strict-transport-security] => Array
                                        (
                                            [0] => max-age=63072000; includeSubDomains
                                        )

                                )

                        )

                    [status_code] => 401
                    [protocol_version] => 1.1
                    [success] => 
                    [redirects] => 0
                    [url] => https://vli.service-now.com/api/sn_sc/servicecatalog/items/9774dc663b9de6103001caea26e45a33/submit_producer
                    [history] => Array
                        (
                        )

                    [cookies] => WpOrgRequestsCookieJar Object
                        (
                            [cookies:protected] => Array
                                (
                                    [BIGipServerpool_vli] => WpOrgRequestsCookie Object
                                        (
                                            [name] => BIGipServerpool_vli
                                            [value] => 3cc8af635a77dc7217aa47d0b04b1615
                                            [attributes] => WpOrgRequestsUtilityCaseInsensitiveDictionary Object
                                                (
                                                    [data:protected] => Array
                                                        (
                                                            [httponly] => 1
                                                            [secure] => 1
                                                            [samesite] => None
                                                            [path] => /
                                                            [domain] => vli.service-now.com
                                                        )

                                                )

                                            [flags] => Array
                                                (
                                                    [creation] => 1762204104
                                                    [last-access] => 1762204104
                                                    [persistent] => 
                                                    [host-only] => 1
                                                )

                                            [reference_time] => 1762204104
                                        )

                                    [JSESSIONID] => WpOrgRequestsCookie Object
                                        (
                                            [name] => JSESSIONID
                                            [value] => 15AEACF863E03EC3DF63BBA8705A97A1
                                            [attributes] => WpOrgRequestsUtilityCaseInsensitiveDictionary Object
                                                (
                                                    [data:protected] => Array
                                                        (
                                                            [path] => /
                                                            [httponly] => 1
                                                            [secure] => 1
                                                            [samesite] => None
                                                            [domain] => vli.service-now.com
                                                        )

                                                )

                                            [flags] => Array
                                                (
                                                    [creation] => 1762204104
                                                    [last-access] => 1762204104
                                                    [persistent] => 
                                                    [host-only] => 1
                                                )

                                            [reference_time] => 1762204104
                                        )

                                )

                        )

                )

            [filename:protected] => 
        )

)