[dba-VB] URL syntax for a webservice

Salakhetdinov Shamil mcp2004 at mail.ru
Tue Dec 16 10:57:03 CST 2014


 Hi Gustav --

Yes, I personally prefer to use the last format but here is a real life example where Microsoft uses the first format on web page:

http://aspnet.codeplex.com/sourcecontrol/latest#Samples/WebApi/CustomActionSelector/ReadMe.txt  

" This sample is provided as part of the ASP.NET Web Stack sample repository at
http://aspnet.codeplex.com/

For more information about the samples, please see
http://go.microsoft.com/fwlink/?LinkId=261487 "


But the last format  http://go.microsoft.com/fwlink?LinkId=261487   would also work.

Thank you.

-- Shamil


Tue, 16 Dec 2014 11:41:26 +0000 from Gustav Brock <gustav at cactus.dk>:
>Hi all
>
>I found out to search for "URL" and  "syntax" and that quickly revealed that the last is correct.
>
>/gustav
>
>-----Oprindelig meddelelse-----
>Fra:  dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] P� vegne af Gustav Brock
>Sendt: 15. december 2014 19:30
>Til: Discussion concerning Visual Basic and related programming issues. (dba-vb at databaseadvisors.com)
>Emne: [dba-VB] URL syntax for a webservice
>
>Hi all
>
>What is the preferred syntax for this? A trailing slash or not after the path?
>For example:
>
>     http://someapi.org/api/?key=122696&country=dk
>
>or:
>
>     http://someapi.org/api?key=122696&country=dk
>
>I think the first, but in various examples I've seen the last.
>
>/gustav 
>
>
>_______________________________________________
>dba-VB mailing list
>dba-VB at databaseadvisors.com
>http://databaseadvisors.com/mailman/listinfo/dba-vb
>http://www.databaseadvisors.com
>



More information about the dba-VB mailing list