# The URL for the Third Party Survey is being converted to all lowercase

**URL:** <https://devforum.zoom.us/t/the-url-for-the-third-party-survey-is-being-converted-to-all-lowercase/87153>\
**Category:** API and Webhooks\
**Tags:** api\
**Created:** [April 21, 2023, 7:13am UTC](https://devforum.zoom.us/t/the-url-for-the-third-party-survey-is-being-converted-to-all-lowercase/87153 "2023-04-21T07:13:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mishima.t](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mishima.t/32/47816_2.png) [@mishima.t](https://devforum.zoom.us/u/mishima.t)\
**Post date:** [April 21, 2023, 7:13am UTC](https://devforum.zoom.us/t/the-url-for-the-third-party-survey-is-being-converted-to-all-lowercase/87153/1 "2023-04-21T07:13:24Z")

</div>

Other people have asked the same question as me below, but since it hasn’t been resolved, I would like to ask the same question again.

> [@Third party meeting survey auto force link to lowercase](https://devforum.zoom.us/t/third-party-meeting-survey-auto-force-link-to-lowercase/77902):
>
> When we use endpoint [/meetings/{meetingId}/survey] Use param third\_party\_survey to link with google Forms , but the link we added were auto force to lowercase . Example : We call api [/meetings/{meetingId}/survey] with body { “show\_in\_the\_browser” =\> “true”, “third\_party\_survey” =\> “[https://docs.google.com/forms/d/e/1FAIpQLSd5rmLlI2f4CbkEPSLCT/viewform](https://docs.google.com/forms/d/e/1FAIpQLSd5rmLlI2f4CbkEPSLCT/viewform)” ( \*\* ) } The link survey linked with meeting we want is : ( \*\* ) ( Sorry i’m new member , can post 2 links in post ) But by som…

* * *

When we use endpoint [/meetings/{meetingId}/survey]

We call api [/meetings/{meetingId}/survey] with the following PHP program.  
The URL for the Third Party Survey is being converted to all lowercase and registered in ZOOM.  
“forms.gle/q5ppeHmeDgZuaJr22” → “forms.gle/q5ppehmedgzuajr22”

```
        {
        $params = array(
            'third_party_survey' => "https://forms.gle/q5ppeHmeDgZuaJr22"
        );
        $options = array(
            CURLOPT_URL => "https://api.zoom.us/v2/meetings/$meeting_id/survey",
            CURLOPT_HTTPHEADER => array(
                "Content-Type: application/json",
                "Authorization: Bearer $accessToken",
            ),
            CURLOPT_POSTFIELDS => json_encode($params),
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_ENCODING => '',
            CURLOPT_MAXREDIRS => 10,
            CURLOPT_TIMEOUT => 0,
            CURLOPT_FOLLOWLOCATION => true,
            CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
            CURLOPT_SSL_VERIFYPEER => false,
            CURLOPT_CUSTOMREQUEST => 'PATCH',
        );
        $ch = curl_init();
        curl_setopt_array($ch, $options);
        curl_close($ch);
        }

```

I would like to register capital letters as they are.  
Could you please provide a solution?  
Thank you.

---

<div class="post-metadata">

**Author:** ![MultiplayerSession](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/multiplayersession/32/66446_2.png) [@MultiplayerSession](https://devforum.zoom.us/u/MultiplayerSession)\
**Post date:** [April 21, 2023, 3:26pm UTC](https://devforum.zoom.us/t/the-url-for-the-third-party-survey-is-being-converted-to-all-lowercase/87153/2 "2023-04-21T15:26:00Z")

</div>

Perhaps you can URL encode the characters that would be transformed, or try out other cross-site scripting (XSS) techniques that are used for filter evasion?

---

<div class="post-metadata">

**Author:** ![mishima.t](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mishima.t/32/47816_2.png) [@mishima.t](https://devforum.zoom.us/u/mishima.t)\
**Post date:** [April 23, 2023, 11:54pm UTC](https://devforum.zoom.us/t/the-url-for-the-third-party-survey-is-being-converted-to-all-lowercase/87153/3 "2023-04-23T23:54:49Z")

</div>

Thank you so much for the advice.  
I was able to handle it with URL encoding.  
It was helpful.

---

<div class="post-metadata">

**Author:** ![rahul\_cloudsangha](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rahul_cloudsangha/32/49152_2.png) [@rahul\_cloudsangha](https://devforum.zoom.us/u/rahul_cloudsangha)\
**Post date:** [August 1, 2023, 10:09pm UTC](https://devforum.zoom.us/t/the-url-for-the-third-party-survey-is-being-converted-to-all-lowercase/87153/4 "2023-08-01T22:09:51Z")

</div>

Zoom devs! Please fix this issue, URLs are case sensitive and your API should not be converting them to lowercase.

For anyone else looking for a workaround, URL encoding worked for me as well though it was a bit clunky. Here’s the nodeJS code I used for this:

```auto
// The zoom API appears to have a bug where it converts third party survey links to lowercase letters, which spoils the link
// Encode any uppercase letters in the URL to avoid this:
const percentEncodeUppercaseLettersAndUnsafeCharacters = (rawUrl: string) => {
    const UTF8_ENCODER = new TextEncoder();
    return [...rawUrl]
        .map((char) => {
            if (/^[A-Z]$/.test(char)) {
                // Forcibly convert uppercase letters to percent encoded strings (they are skipped by encodeURI)
                return `%${UTF8_ENCODER.encode(char)[0].toString(16).padStart(2, "0")}`;
            } else {
                // Use the standard URI encode function to handle all other characters
                return encodeURI(char);
            }
        })
        .join("");
};

```

---

<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:** [August 4, 2024, 1:46pm UTC](https://devforum.zoom.us/t/the-url-for-the-third-party-survey-is-being-converted-to-all-lowercase/87153/5 "2024-08-04T13:46:22Z")

</div>

Closed on August 4, 2024, 1:46pm UTC

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