• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Unable to create Tinyurl with & symbol

Dear All,

I would like to create Tinyurl from long URL that's contain & symbol.

The coding that I use is as below:

Code:
Function GetTinyUrl(url As String) As String
' based on http://chandoo.org/wp/2009/02/05/twitter-from-excel/
' tinyurl API creation link from:
' http://www.wprecipes.com/how-to-automatically-provide-tinyurls-for-your-wordpress-blog-posts

Dim xml As Object
Set xml = CreateObject("MSXML2.XMLHTTP.6.0")

xml.Open "POST", "http://tinyurl.com/api-create.php?url=" & url, False
xml.Send

GetTinyUrl = xml.ResponseText
End Function

For example below URL

http://www.aweber.com/thankyou-coi.htm?m=text&l=chandoo-org

The Tinyurl only will create until below URL

http://www.aweber.com/thankyou-coi.htm?m=text

The remaining will be cut when using this fuction.

Hope can guide me to solve this issue.

Thanks in advance
 
Last edited by a moderator:
Can you please post the calling sub that is calling that function ?
 
Back
Top