Gustav Brock
gustav at cactus.dk
Wed Dec 17 02:33:25 CST 2014
Hi Shamil and Jim I tested a few places, and it seems like most web servers are quite relaxed regarding this - both formats seem to be accepted. /gustav -----Oprindelig meddelelse----- Fra: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] På vegne af Salakhetdinov Shamil Sendt: 16. december 2014 17:57 Til: Discussion concerning Visual Basic and related programming issues. Emne: Re: [dba-VB] URL syntax for a webservice 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