A/WWW Enterprises15 July 1996 Implementing Queries with HTTP A. Warnock A/WWW Enterprises

Slides:



Advertisements
Similar presentations
CGI & HTML forms CGI Common Gateway Interface  A web server is only a pipe between user-agents  and content – it does not generate content.
Advertisements

TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
MCNC/CNIDR & A/WWW Enterprises Introduction to CNIDR’s Isite Jim Fullton - MCNC/CNIDR Archie Warnock - A/WWW Enterprises.
Session 6 Server-side programming - ASP. An ASP page is an HTML page interspersed with server-side code. The.ASP extension instead of.HTM denotes server-side.
CP476 Internet Computing Browser and Web Server 1 Web Browsers A client software program that allows you to access and view Web pages on the Internet –Examples.
1 The World Wide Web. 2  Web Fundamentals  Pages are defined by the Hypertext Markup Language (HTML) and contain text, graphics, audio, video and software.
Chapter 10 Publishing and Maintaining Your Web Site.
1 ‘Dynamic’ Web Pages So far, we have developed ‘static’ web-pages, e.g., cv.html, repair.html and order.html. There is often a requirement to produce.
CGI Common Gateway Interface. CGI is the scheme to interface other programs to the Web Server.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Introduction to PHP and Server Side Technology. Slide 2 PHP History Created in 1995 PHP 5.0 is the current version It’s been around since 2004.
A/WWW Enterprises1 Introduction to CNIDR’s Isearch Archie Warnock
Comp2513 Forms and CGI Server Applications Daniel L. Silver, Ph.D.
Principles of Computer Security: CompTIA Security + ® and Beyond, Third Edition © 2012 Principles of Computer Security: CompTIA Security+ ® and Beyond,
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
FTP (File Transfer Protocol) & Telnet
Web application architecture
GDT V5 Web Services. GDT V5 Web Services Doug Evans and Detlef Lexut GDT 2008 International User Conference August 10 – 13  Lake Las Vegas, Nevada GDT.
Python CGI programming
Introduction to Programming the WWW I CMSC Summer 2004 Lecture 6.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
CS4273: Distributed System Technologies and Programming I Lecture 7: Java Networking.
Web Server Administration Web Services XML SOAP. Overview What are web services and what do they do? What is XML? What is SOAP? How are they all connected?
10/13/2015 ©2006 Scott Miller, University of Victoria 1 Content Serving Static vs. Dynamic Content Web Servers Server Flow Control Rev. 2.0.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Linux+ Guide to Linux Certification Chapter Eight Working with the BASH Shell.
Website Development with PHP and MySQL Saving Data.
Chapter 9 Publishing and Maintaining Your Site. 2 Principles of Web Design Chapter 9 Objectives Understand the features of Internet Service Providers.
CGI Programming. What is it? CGI –Common Gateway Interface Standard way to pass information back to the Web Server –GET Query String –POST Standard Input.
1 Welcome to CSC 301 Web Programming Charles Frank.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
CGI Common Gateway Interface. CGI is the scheme to interface other programs to the Web Server.
HTML Form and PHP IST Review of Previous Class HTML table and PHP array Winner is chosen randomly using rand() function.
A/WWW Enterprises 28 Sept 1995 AstroBrowse: Survey of Current Technology A. Warnock A/WWW Enterprises
Creating PHPs to Insert, Update, and Delete Data CS 320.
PHP Open source language for server-side scripting Works well with many databases (e.g., MySQL) Files end in.php,.php3 or.phtml Runs on all major platforms.
SNOWTAM Trial: REST Interface. AIXM XML Developers' Seminar 2 Contents Digital-SNOWTAM Trial Introduction REST Introduction REST in the Digital-SNOWTAM.
Http protocol Response-request Clients not limited to web browsers. Anything that can access code implementing the protocol works: –Standalone programs.
WWW: an Internet application Bill Chu. © Bei-Tseng Chu Aug 2000 WWW Web and HTTP WWW web is an interconnected information servers each server maintains.
Netprog 2002 CGI Programming1 CGI Programming CLIENT HTTP SERVER CGI Program http request http response setenv(), dup(), fork(), exec(),...
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
2: Application Layer 1 Chapter 2: Application layer r 2.1 Principles of network applications  app architectures  app requirements r 2.2 Web and HTTP.
Archibald Warnock FGDC Activities CIP/INFEO Interoperability and ISO CD2 Metadata Activities.
 Previous lessons have focused on client-side scripts  Programs embedded in the page’s HTML code  Can also execute scripts on the server  Server-side.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
1 HTML forms (cont.)
©SoftMooreSlide 1 Introduction to HTML: Forms ©SoftMooreSlide 2 Forms Forms provide a simple mechanism for collecting user data and submitting it to.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
Basic Webpage Design HTML Forms. Objectives Learn how to use HTML to create a form. Explain the concept of forms Know the difference of GET and POST Discuss.
A/WWW Enterprises 15 July 1996 Implementing Queries with Z39.50 A. Warnock A/WWW Enterprises
CS 330 Class 8 Homework A pattern that contains a word with an optional period A pattern that contains Fred with a space (not Freddy) See regexp.txt guest4.htm.
Introduction to CGI PROG. CGI stands for Common Gateway Interface. CGI is a standard programming interface to Web servers that gives us a way to make.
COSC 2328 – Web Programming.  PHP is a server scripting language  It’s widely-used and free  It’s an alternative to Microsoft’s ASP and Ruby  PHP.
1 Chapter 22 World Wide Web (HTTP) Chapter 22 World Wide Web (HTTP) Mi-Jung Choi Dept. of Computer Science and Engineering
Lesson 11. CGI CGI is the interface between a Web page or browser and a Web server that is running a certain program/script. The CGI (Common Gateway Interface)
The Common Gateway Interface (CGI) Pat Morin COMP2405.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Internet/Web Databases
CS 330 Class 7 Comments on Exam Programming plan for today:
Contents Digital-SNOWTAM Trial Introduction REST Introduction
EXCEPTION HANDLING IN SERVER CLIENT PROGRAMMING
Introduction to Programming the WWW I
PHP / MySQL Introduction
Web Server Administration
Chapter 27 WWW and HTTP.
Introduction to Servlets
What is Perl? PERL--Practical Extraction and Report Language
Archibald Warnock A/WWW Enterprises
Presentation transcript:

A/WWW Enterprises15 July 1996 Implementing Queries with HTTP A. Warnock A/WWW Enterprises

A/WWW Enterprises15 July 1996 Why Use Open Protocols? n Anyone can write servers n Anyone can write clients n Leverages off of existing development n Uses formalized standards n In short:Interoperability

A/WWW Enterprises15 July 1996 What Protocols Are Available? n ftp n telnet n gopher (really telnet) n WAIS (Z ) n http + CGI n Z39.50 v2, v3

A/WWW Enterprises15 July 1996 http Capabilities n http does only a few things get files (w/ MIME type) put parameters (from forms) execute scripts (CGI) n http defines only syntax, not content n Queries depend on content

A/WWW Enterprises15 July 1996 CGI Scripting n CGI runs scripts on server accepts parameters from client parameter input via command line or stdin pipes output to stdout n Sample CGI Input Stream cgi-bin/ ? The parameter list is unspecified - it can be anything the form implementor desires

A/WWW Enterprises15 July 1996 Search Requirements n Search = Bookkeeping + Query n Bookkeeping consists of: User ID inf. What database to query? What elements to return? What format is requested? How many records to return?

A/WWW Enterprises15 July 1996 What Goes Into A Query? n A query is constructed by specifying: Search Term(s) Field Names Words, phrases, etc. Word stems, wildcards Stems, substrings, area relations n None of these is prescribed in http!

A/WWW Enterprises15 July 1996 http Query Summary n http can transmit arbitrary queries, but contains nothing to help in interpreting them n We must make up and agree upon a query syntax from scratch n This is called a Search Profile

A/WWW Enterprises15 July 1996 Example Scenario n User completes an HTML form and submits it n Server receives a POST request - a bunch of information: Where the message came from How long the message is The message text

A/WWW Enterprises15 July 1996 Sample Query n Step 1: /cgi-bin/query?db=Inventory &user=warnock&nrecs=all&element=B &format=HTML&platform=Landsat7TM &rect=42N+112.5W+center+512km+NS +512km+EW&operator=spatialIntersect &resolution=Maximum n Must also include all state information

A/WWW Enterprises15 July 1996 Critique n What’s so hard about this? Is the query case sensitive? What if the user is French? Russian? Chinese? Do I specify “platform” or “Platform” or “Source” or “source”? Is the order of parameters important? How do I specify other resolutions? Can you generalize this to the query in Step 9? What’s your confidence that it would be correct?

A/WWW Enterprises15 July 1996 Summary n http can be used to transmit queries and responses, but there’s nothing in the protocol itself to make the process unambiguous n We have to do all the work outside the protocol - that is, we have to write a profile!