Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Host ends with / and extra URL starts with /
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Host ends with / and extra URL starts with /
Environment versions
Environment:
C# 5.0
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01644033
Message ID:
01644033
Views:
37
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.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform