>Hi everybody,
>
>I have tcHost variable in the form of
https://mySite.com/>
>and I have API url such as
>
>"/integrationapi//Attraction/Tickets/Use"
>
>I have the following code
>
>
>request = WebRequest.Create(tcHost + url) as HttpWebRequest;
>
>I'm wondering does it matter that with that concatenation I'm getting // before integration. If it matters, is there anything in .NET that will properly concatenate these two things?
>
>Thanks in advance.
Safest way:
char[] c = { Path.AltDirectorySeparatorChar };
string fullPath = tcHost.TrimEnd(c) +url;