Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

what does it mean by putting ? mark at the end of URL  RSS feed

 
jazy smith
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am wondering what does it mean by putting '?' at the end of URL. when I tried something like this ' http:// .... /applicaion_name ' it displayed a page... but when I put ? after end of it, ' http://..../application_name? ' it displayed xml page... what is that xml page and why did it come when I put ?

Sorry if it's simple question for you guys, but i don't know ...

thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ? separates the query string from the rest of the URL. An empty query string is perfectly valid with or without the ?.
 
jazy smith
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Bear,
thanks for the prompt reply. the empty query string is valid i.e. if you just put ? after URL and nothing after ? it's valid. but doing so what are we exactly saying to server ? I mean server will consider it as what ?

Hope you got what I mean to say.
 
jazy smith
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey bear .. are you there ?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66207
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The server could care less.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!