How do I stop webread from converting "%2B" into "+"?

1 view (last 30 days)
Unforunately, every time it webread runs it converts the all of the "%2B" into "+" and then returns an error. How do I get it to use the exact URL as entered???
It keeps returning this error:
Error using matlab.internal.webservices.HTTPConnector/copyContentToFile (line 389)
The server returned the status 403 with message "Forbidden" in response to the request to URL
Error in readContentFromWebService (line 62)
copyContentToFile(connection, filename);
Error in webread (line 125)
[varargout{1:nargout}] = readContentFromWebService(connection, options);
Here's my code:
TF = webread('')
Nathan Lively
Nathan Lively on 25 Oct 2021
Thanks Rik. I tried this. Unfortunately, it produces the same error.
oldURL = '';
newURL = strrep(url,'%2B','%252B');
TF = webread(newURL);

Sign in to comment.

Answers (0)


Find more on Loops and Conditional Statements in Help Center and File Exchange




Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by