Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Host ends with / and extra URL starts with /
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Host ends with / and extra URL starts with /
Versions des environnements
Environment:
C# 5.0
OS:
Windows 10
Database:
MS SQL Server
Divers
Thread ID:
01644033
Message ID:
01644033
Vues:
38
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform