1 00:00:07,970 --> 00:00:14,850 Welcome back. Let's talk about a particular URL structure that's very common. 2 00:00:14,850 --> 00:00:19,725 We're going to talk about what happens after the slash. 3 00:00:19,725 --> 00:00:25,020 A very common format is to have some path name, 4 00:00:25,020 --> 00:00:32,265 in this case just slash list and then we have the character question mark. 5 00:00:32,265 --> 00:00:34,515 After the question mark, 6 00:00:34,515 --> 00:00:38,860 we get query parameters. 7 00:00:44,330 --> 00:00:50,300 So, as before we have a protocol https, 8 00:00:50,300 --> 00:00:51,650 we have a host, 9 00:00:51,650 --> 00:00:57,365 in this case events.umich.edu and then we have the arguments, 10 00:00:57,365 --> 00:00:59,820 everything after the slash. 11 00:01:01,460 --> 00:01:08,740 Any web server gets to decide what format or arguments it's willing to accept, 12 00:01:08,740 --> 00:01:10,560 but this is a very common one, 13 00:01:10,560 --> 00:01:16,785 where you'll have some path name and then question mark and then these query parameters. 14 00:01:16,785 --> 00:01:24,020 These query parameters are very often formatted in these key equals value. 15 00:01:24,020 --> 00:01:26,205 Key equals value. 16 00:01:26,205 --> 00:01:28,605 So, we have two of these keys. 17 00:01:28,605 --> 00:01:36,090 One key is called filter and the other one is called range. 18 00:01:36,260 --> 00:01:44,470 The value of filter is tags: Art, 19 00:01:44,540 --> 00:01:54,010 and the range has the value 2018-10-01, October 1st, 2018. 20 00:01:54,290 --> 00:01:58,460 The server is going to interpret this request as 21 00:01:58,460 --> 00:02:01,640 a request to search on the server to find 22 00:02:01,640 --> 00:02:09,050 out those events that are happening on 2018 or beginning in October 1st, 23 00:02:09,050 --> 00:02:14,130 2018 and that somehow are tagged with the word art. 24 00:02:14,270 --> 00:02:17,230 If we visit that URL, 25 00:02:17,230 --> 00:02:22,790 the web server is interpreting the request as a query and it is 26 00:02:22,790 --> 00:02:25,100 returning Information just about 27 00:02:25,100 --> 00:02:30,355 artistic activities that are happening around campus starting on October 1st. 28 00:02:30,355 --> 00:02:32,030 You can see some of 29 00:02:32,030 --> 00:02:34,820 the interesting artistic things that are happening 30 00:02:34,820 --> 00:02:37,640 especially in the university hospitals, 31 00:02:37,640 --> 00:02:40,090 but also elsewhere around campus. 32 00:02:40,090 --> 00:02:45,220 This URL structure, where we have as arguments, 33 00:02:45,220 --> 00:02:49,610 a path and then a question mark and key equals value pairs, 34 00:02:49,610 --> 00:02:52,850 this is a very common URL pattern and one that we'll be 35 00:02:52,850 --> 00:02:58,235 using in our coming lessons to write programs that fetch data from the internet. 36 00:02:58,235 --> 00:03:00,780 We'll see you next time.