Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9200669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:49:09+00:00 2026-06-17T22:49:09+00:00

This isn’t Twilio specific, but the issue does cause the Twilio API call to

  • 0

This isn’t Twilio specific, but the issue does cause the Twilio API call to fail..

I’m wanting to generate an XML file via Twilio’s lab:

http://twimlets.com/echo?Twiml=%3CResponse%3E%3CSay%3EHi+there.%3C%2FSay%3E%3C%2FResponse%3E

The above URL works great as a parameter in the API and obviously works if you use your browser to view the output.

I can also view the following in the browser, and it works fine, but this version of the URL fails as a parameter to the Twilio API

http://twimlets.com/echo?Twiml=Response><Say>Hi+there.</Say></Response>

For readability and debugging I would much prefer to have the second URL. Is there a library or other way in C# to convert the second, pretty URL to the first, replacing %3C with the ‘<‘ character and so on? I could then just do the replacement right before I send it off to the API since my app pushes around and stores the pretty version everywhere else. I can of course write one myself to do the conversion, but it seems like this would be a common problem. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T22:49:10+00:00Added an answer on June 17, 2026 at 10:49 pm

    Is this perhaps what you are looking for?

    private void Form1_Load(object sender, EventArgs e)
    {
        string encoded = "http://twimlets.com/echo?Twiml=%3CResponse%3E%3CSay%3EHi+there.%3C%2FSay%3E%3C%2FResponse%3E";
       string decoded = Uri.UnescapeDataString(encoded);
    }
    

    Output – Unescaped string:

    http://twimlets.com/echo?Twiml=<Response><Say>Hi+there.</Say></Response>
    

    And back to normal:

    string encoded = Uri.EscapeDataString(decoded);
    

    Output – escaped string:

    http://twimlets.com/echo?Twiml=%3CResponse%3E%3CSay%3EHi+there.%3C%2FSay%3E%3C%2FResponse%3E
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this isn't really an issue, but more of a concern that I would appreciate
This isn't exactly a development question, but it does affect my productivity! Recently, installing
This isn't about a specific problem I'm having, but I have to clear something
This isn't solved, but I found out why: MySQL View containing UNION does not
This isn't so much a programming issue, but i'm not sure where else to
This isn't that big of an issue but its been bugging me I wanted
This isn't a super critical issue, but in my project, I have multiple targets
Hopefully this isn't too specific/small a question, but I was wondering if anyone knew
This isn’t a specific question with a specific solution; but it’s rather a response
This isn't easy to explain, but I'll try my best. The issue has started

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.