Skip to content
This repository was archived by the owner on Mar 9, 2023. It is now read-only.

draconicdon/FP1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 

Repository files navigation

###Name: Donovyn A. Pickler

My Library: (net/url)

######Current Final Project Idea: Multi User Dungeon (MUD) Idea requirements:

  1. Creating and hosting a server module
  2. Creating a client module that will play nice with the server module
  3. create options for interaction between clients and/or clients and the server.

FP1 will be an exploration of the "net/url" library at the suggestion of instructor Fred Martin. I will be exploring the library with the hope that it will provide me with some of the necessary structure to build server/client code. The target of my experimentations with this library will be a small website designed by a friend of mine.

####First step: Blindly copy and paste the sample code and see what that gets me:

#lang racket

(require net/url)

(define myurl (string->url "http://www.billnyeisalizard.com/"))
(define myport (get-pure-port myurl))
(display-pure-port myport)

Result: HTML source code for the site, ugly and not particularly useful in this state, or for my purposes at all really.

Look at me im alt text

####Second step: Actually do some reading on the library and see what it can do for me aside of spit out raw HTML files.

There are a lot of interesting commands in the library pertaining to conversions of things to and from the url format.

An interesting command I stumbled across was (get-pure-port/headers), It looks like this just pulled all information out of the head tag of the html file.

Result: Finally some ledgible information. more alt text

With this I can see when my friend last updated the site, the page's content type, and the host server.

About

Exploration 1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Racket 100.0%