+ Start a Discussion
Filip Poverud 4Filip Poverud 4 

Apex Integration Services - Apex Web Service - Content Length: 0

I'm doing the Apex Integration Services  - Apex Web Service module and when I try the curl step I receive a Content Length: 0

It is working from WorkBench.

This is the WorkBench output:
HTTP/1.1 200 OK
Date: Wed, 16 Oct 2019 10:00:54 GMT
Strict-Transport-Security: max-age=31536002; includeSubDomains
Public-Key-Pins-Report-Only: pin-sha256="9n0izTnSRF+W4W4JTq51avSXkWhQB8duS2bxVLfzXsY="; pin-sha256="5kJvNEMw0KjrCAu7eXY5HZdvyCS13BbA0VJG1RSP91w="; pin-sha256="njN4rRG+22dNXAi+yb8e3UMypgzPUPHlv4+foULwl1g="; max-age=86400; includeSubDomains; report-uri="https://a.forcesslreports.com/hpkp-report/00D2o000000ZPp5m";
Expect-CT: max-age=86400, report-uri="https://a.forcesslreports.com/Expect-CT-report/00D2o000000ZPp5m"
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Robots-Tag: none
Cache-Control: no-cache,must-revalidate,max-age=0,no-store,private
Set-Cookie: BrowserId=18HBvu_7EemEy3_5EA2TOw;Path=/;Domain=.salesforce.com;Expires=Sun, 15-Dec-2019 10:00:54 GMT;Max-Age=5184000
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: application/json;charset=UTF-8
Vary: Accept-Encoding
Content-Encoding: gzip
Transfer-Encoding: chunked


{
  "attributes" : {
    "type" : "Case",
    "url" : "/services/data/v47.0/sobjects/Case/5002o00002FmtZdAAJ"
  },
  "CaseNumber" : "00001027",
  "Subject" : "Bigfoot Sighting!",
  "Status" : "New",
  "Origin" : "Phone",
  "Priority" : "Low",
  "Id" : "5002o00002FmtZdAAJ"
}

And this is the curl output:
HTTP/1.1 302 Moved Temporarily
Date: Wed, 16 Oct 2019 10:31:43 GMT
Strict-Transport-Security: max-age=31536001; includeSubDomains
Public-Key-Pins-Report-Only: pin-sha256="9n0izTnSRF+W4W4JTq51avSXkWhQB8duS2bxVLfzXsY="; pin-sha256="5kJvNEMw0KjrCAu7eXY5HZdvyCS13BbA0VJG1RSP91w="; pin-sha256="njN4rRG+22dNXAi+yb8e3UMypgzPUPHlv4+foULwl1g="; max-age=86400; includeSubDomains; report-uri="https://a.forcesslreports.com/hpkp-report/nullm";
Expect-CT: max-age=86400, report-uri="https://a.forcesslreports.com/Expect-CT-report/nullm"
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Content-Security-Policy: upgrade-insecure-requests
X-Robots-Tag: none
Cache-Control: no-cache,must-revalidate,max-age=0,no-store,private
Set-Cookie: BrowserId=JZY92fAAEemaOueQZln3uA;Path=/;Domain=.force.com;Expires=Sun, 15-Dec-2019 10:31:43 GMT;Max-Age=5184000
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Location: https://poverud-dev-ed.my.salesforce.com/services/apexrest/Cases/5002o00002FmtZdAAJ
Content-Length: 0

I'm not sure where it goes wrong, any input is appreciated.

with Regards
Filip Poverud