Message
From
28/11/2016 14:15:16
Naomi Nosonovsky
Wisconsin
,
United States
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:
39
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 the map of this thread
View the map of this thread starting from this message only
View
View all messages of this thread
View all messages of this thread starting from this message only