# Download URL's work from browser but not from script

**URL:** <https://devforum.zoom.us/t/download-urls-work-from-browser-but-not-from-script/28343>\
**Category:** API and Webhooks\
**Created:** [August 27, 2020, 3:41pm UTC](https://devforum.zoom.us/t/download-urls-work-from-browser-but-not-from-script/28343 "2020-08-27T15:41:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![KuraMD](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kuramd/32/14208_2.png) [@KuraMD](https://devforum.zoom.us/u/KuraMD)\
**Post date:** [August 27, 2020, 3:41pm UTC](https://devforum.zoom.us/t/download-urls-work-from-browser-but-not-from-script/28343/1 "2020-08-27T15:41:21Z")

</div>

**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

---

<div class="post-metadata">

**Author:** ![KuraMD](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kuramd/32/14208_2.png) [@KuraMD](https://devforum.zoom.us/u/KuraMD)\
**Post date:** [August 27, 2020, 3:48pm UTC](https://devforum.zoom.us/t/download-urls-work-from-browser-but-not-from-script/28343/2 "2020-08-27T15:48:36Z")

</div>

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](http://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

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [August 31, 2020, 5:21pm UTC](https://devforum.zoom.us/t/download-urls-work-from-browser-but-not-from-script/28343/3 "2020-08-31T17:21:58Z")

</div>

Hey @KuraMD,

Which file type are you trying to download?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![KuraMD](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kuramd/32/14208_2.png) [@KuraMD](https://devforum.zoom.us/u/KuraMD)\
**Post date:** [September 3, 2020, 4:14pm UTC](https://devforum.zoom.us/t/download-urls-work-from-browser-but-not-from-script/28343/4 "2020-09-03T16:14:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 8, 2020, 8:25pm UTC](https://devforum.zoom.us/t/download-urls-work-from-browser-but-not-from-script/28343/5 "2020-09-08T20:25:47Z")

</div>

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](mailto:developersupport@zoom.us) and reference this thread.

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

Thanks!  
Will

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [October 9, 2020, 6:25am UTC](https://devforum.zoom.us/t/download-urls-work-from-browser-but-not-from-script/28343/6 "2020-10-09T06:25:53Z")

</div>

Closed on October 9, 2020, 6:25am UTC

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