-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Description
Hello I am using .net core last version and I am trying to download a file through Http Request.
But I receive every time the same error :
{System.ArgumentException: Specified value has invalid Control characters.
Parameter name: value
at System.Net.HttpValidationHelpers.CheckBadHeaderValueChars(String value)
at System.Net.WebHeaderCollection.Set(String name, String value)
at System.Collections.Specialized.NameValueCollection.set_Item(String name, String value)
at System.Net.HttpWebResponse.get_Headers()
at RestSharp.Http.ExtractResponseData(HttpResponse response, HttpWebResponse webResponse)
at RestSharp.Http.<>c__DisplayClass20_0.b__0(HttpWebResponse webResponse)
at RestSharp.Http.GetRawResponseAsync(IAsyncResult result, Action1 callback) at RestSharp.Http.ResponseCallback(IAsyncResult result, Action1 callback)}
In my response I have the next parameter in the header, which I suppose that produce the error:
Specifically this line:
originalfilename: ANALISIS DE ADJUDICACIÒ�SN CROMATOGRAFOS NEUQUEN.docx.xlsx
