Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
"https://s3.amazonaws.com/SmartsheetB1/3d615151217a406caf1adb167d46c82a?response-content-disposition=attachment%3Bfilename%3D%22coding.txt%22%3Bfilename*%3DUTF-8%27%27coding.txt&Signature=FZVMwl20a2QMcgRXssG4YB4BvI0%3D&Expires=1366873667&AWSAccessKeyId=11950YFEZZJFSSKKB3G2"


this is the above url i am sending to the webclient.downloaddata()


error:-illegal character in path


please send me the illegal character .please dont deleted the question
Posted
Comments
Are you encoding before using the link. Please encode the URL using HtmlEncode Class and then try to access.

1 solution

There's an asterisk (*) after "filename" - that might be one problem.
But also otherwise, the URL looks very bad. I see "coding.txt" twice, and "filename" twice...
Can't you send the query data with a POST request instead of a GET request - that makes things easier.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900