Download URL's work from browser but not from script

Description
When requesting a download_url for a recording from browser, a location header is correctly sent with the 302 response. When requesting this same download_url using PHP’s fopen()/fread() the header is apparently not sent.

Error
as reported by get_headers(), with potentially identifying/authenticating information snipped
array(21) {
[0]=>
string(13) “Sorry, New Users Can Only Put 2 Links Per Post/1.1 302 "
[1]=>
string(35) “Date: Thu, 27 Aug 2020 15:39:14 GMT”
[2]=>
string(17) “Connection: close”
[3]=>
string(12) “Server: ZOOM”
[4]=>
string(53) “x-zm-trackingid: SNIPPED”
[5]=>
string(31) “X-Robots-Tag: noindex, nofollow”
[6]=>
string(31) “X-Content-Type-Options: nosniff”
[7]=>
string(69) “Set-Cookie: zm_cluster=aw1; Domain=.Sorry, New Users Can Only Put 2 Links Per Post; Path=/; Secure; HttpOnly”
[8]=>
string(84) “Set-Cookie: zm_aid=SNIPPED; Domain=.Sorry, New Users Can Only Put 2 Links Per Post; Path=/; Secure; HttpOnly”
[9]=>
string(66) “Set-Cookie: zm_haid=SNIPPED; Domain=.Sorry, New Users Can Only Put 2 Links Per Post; Path=/; Secure; HttpOnly”
[10]=>
string(75) “Set-Cookie: cred=SNIPPED; Path=/; Secure; HttpOnly”
[11]=>
string(97) “Set-Cookie: _zm_page_auth=SNIPPED; Domain=.Sorry, New Users Can Only Put 2 Links Per Post; Path=/; Secure; HttpOnly”
[12]=>
string(54) “p3p: CP=“NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM””
[13]=>
string(92) “Set-Cookie: _zm_ssid=SNIPPED; Domain=.Sorry, New Users Can Only Put 2 Links Per Post; Path=/; Secure; HttpOnly”
[14]=>
string(106) “Set-Cookie: _zm_ctaid=””; Domain=.Sorry, New Users Can Only Put 2 Links Per Post; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly"
[15]=>
string(107) “Set-Cookie: _zm_chtaid=”"; Domain=.Sorry, New Users Can Only Put 2 Links Per Post; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; Secure; HttpOnly"
[16]=>
string(98) “Set-Cookie: _zm_lang=en-US; Domain=.Sorry, New Users Can Only Put 2 Links Per Post; Expires=Fri, 27-Aug-2021 15:39:14 GMT; Path=/; Secure”
[17]=>
string(69) “Set-Cookie: _zm_date_format=mm/dd/yy; Domain=.Sorry, New Users Can Only Put 2 Links Per Post; Path=/; Secure”
[18]=>
string(62) “Strict-Transport-Security: max-age=31536000; includeSubDomains”
[19]=>
string(31) “X-XSS-Protection: 1; mode=block”
[20]=>
string(48) “Referrer-Policy: strict-origin-when-cross-origin”
}

Which App Type (OAuth / Chatbot / JWT / Webhook)?
JWT

Which Endpoint/s?
/meetings/{$meetingId}/recordings

How To Reproduce (If applicable)
Steps to reproduce the behavior:

  1. /rec/download/XXXXXX?access_token=XXXXXXX
  2. See error

Additional context
N/A

Maybe this DNS info is relevant/useful:

From the server unable to get location header:
ubuntu@ip-10-0-40-159:/var/www/kura-v2$ host -t a Sorry, new users can only put 2 links in a post.
Sorry, new users can only put 2 links in a post. has address 3.235.71.132

From my local machine (works as intended):
Default Server: RT-AX88U-A508
Address: 192.168.50.1

set type=A
zoom.us
Server: RT-AX88U-A508
Address: 192.168.50.1

Non-authoritative answer:
Name: Sorry, new users can only put 2 links in a post.
Address: 52.202.62.202

Hey @KuraMD,

Which file type are you trying to download?

Thanks,
Tommy

Hi @tommy thank you for the reply.

The script attempts to download all recordings in order for the meeting as returned by /meetings/{$meetingId}/recordings

My understanding is that the first file type returned by this API is the failure point

edit: The network environment is AWS, if this also helps

Hi @KuraMD,

As a next step, can I kindly ask that you share the full download URL that is giving you the trouble? (If you think it’s the first download_url in the response you receive from our recordings endpoint, this would be helpful). If this contains sensitive information, you can send this to developersupport@zoom.us and reference this thread.

This will help us to take a closer look at things on our end, specifically.

Thanks!
Will

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.