When I was trying to join a URL with a parameter and execute it with URLFetch, something unexpected happened.
Here is the code (The URL below doesn't exist and is just for illustration.)
Case 1 (Good):
"http://www.google.com/analysis/key=" <> "12345"
will give "http://www.google.com/analysis/key=12345"
Case 2 (Weird):
"http://www.google.com/analysis/key=" <> "12345678910111213141516171819202122"
will give "http://www.google.com/analysis/key=\ 12345678910111213141516171819202122"
Note that the \ is shown when copying it out. And I think that's the reason the URLFetch fails.
So how can I fix this?
SetOptions[$FrontEndSession, "ExportTypesetOptions" -> {"PageWidth" -> Infinity}]. This has been discussed in e.g. Setting output width for CopyToClipboard, of which this question is a likely duplicate. $\endgroup$