Working with Webservices (Cloud Services)

Size: px
Start display at page:

Download "Working with Webservices (Cloud Services)"

Transcription

1 Working with Webservices (Cloud Services) Nilanjan Banerjee University of Maryland, Baltimore County Baltimore, MD Intro to Mobile Computing 1

2 Some of the simple web based services you would use! Writing data to a database Querying data from a database Map queries (already learned about it) (extracting maps, geocoding, reverse geocoding)

3 Other advanced webservices (Hawaii Webservice from Microsoft) Optical Character Recognition System (OCR) Relay services and Rendezvous Services Speech to Text Service Traslator Service (Microsoft Transalator) Path prediction

4 Other webservices we will learn about places API Street View API google messaging service

5 Usually two ways of accessing webservices over Http/Https HttpGet HttpPost What are the differences?

6 Formats in which data is sent back to you json (JSONObject) { "glossary": { "title": "example glossary", "GlossDiv": { "title": "S", GlossList": { "GlossEntry": { "ID": "SGML", "SortAs": "SGML", "GlossTerm": "Standard Generalized Markup Language", "Acronym": "SGML", "Abbrev": "ISO 8879:1986", "GlossDef": { "para": "A meta-markup language, used to create markup", "GlossSeeAlso": ["GML", "XML"] }, "GlossSee": "markup" } } } } }!

7 Formats in which data is sent back to you xml (XmlPullParser) <!DOCTYPE glossary PUBLIC "-//OASIS//DTD DocBook V3.1//EN"> <glossary><title>example glossary</title> <GlossDiv><title>S</title> <GlossList> <GlossEntry ID="SGML" SortAs="SGML"> <GlossTerm>Standard Generalized Markup Language</GlossTerm> <Acronym>SGML</Acronym> <Abbrev>ISO 8879:1986</Abbrev> <GlossDef> <para>a meta-markup language,</para> <GlossSeeAlso OtherTerm="GML"> <GlossSeeAlso OtherTerm="XML"> </GlossDef> <GlossSee OtherTerm="markup"> </GlossEntry> </GlossList> </GlossDiv> </glossary>!

8 General architecture for accessing databases Intermediary Script (php, perl etc) Backend database Mobile Phone

9 Sending simple text data from a Mobile phone (Server side) Adding userinfo --- username and password $firstname = $_REQUEST["firstname"];! $lastname = $_REQUEST["lastname"];! $username = $_REQUEST["username"];! $fpassword = $_REQUEST["fpassword"];! require_once('db.inc.php');! $insertquery="insert INTO table_name (first_name, last_name, user_name, fpassword) VALUES ('$firstname', '$lastname', '$username', '$fpassword )";! $result = mysql_query($insertquery);! mysql_close();! - db.inc.php <?! $user= XXX";! $password= YYY";! $database="weedidapp";! $host="mpss.csce.uark.edu";! or die( "Unable to select database");!?>!

10 Authenticating userinfo (server side) Check that the username password is present in the database Note that this is all in plaintext. Ideally you would create a MD5 hash of the password and store the hash <?php! foreach ($_GET as $key => $value) { eval("\$". $key. " = \"". $value. "\";");}! $username = $_REQUEST["username"];! $fpassword = $_REQUEST["fpassword"];! require_once('db.inc.php');! $query="select * from table where user_name='$username' AND fpassword='$fpassword'";! $result = mysql_query($query);! if($result && mysql_numrows($result)>0)! echo "y ;! else! echo "n ;! mysql_close();!?>!

11 Adding text to a mysql database Send the data encoded in the url For e.g., latitude= ;longitude= The url is parsed by the php script and a hashtable with <key, value> pairs are extraced _REQUEST[ latitude ] = _REQUEST[ longitude ] = $latitude = $_REQUEST[ latitude"];! $longitude = $_REQUEST[ longitude"];! require_once('db.inc.php');! $insertquery="insert INTO table_name (latitude, longitude) VALUES ( $latitude', '$longitude )";! $result = mysql_query($insertquery);! mysql_close();!

12 Retrieving text from a mysql server and sending it back mysql_select_db("locationgame",$con);! $list = mysql_list_tables("locationgame");! $i = 0;! $idarray = array();! $latarray = array();! $longarray = array();! $count = 0;! while($i < mysql_num_rows($list))! {! $tb_names[$i] = mysql_tablename($list,$i);! $sql = "SELECT * FROM $tb_names[$i] order by Date desc limit 1";! $result = mysql_query($sql, $con);! $num = mysql_numrows($result);! $j = 0;! while($j < $num)! {! $fielddate=mysql_result($result,$j,"date");! $fieldlatitude = mysql_result($result, $j, "Latitude");! $fieldlongitude = mysql_result($result, $j, "Longitude");! $phpdate = strtotime($fielddate);! $dist = distance($fieldlatitude, $fieldlongitude, $latitude, $longitude);! $idarray[] = $tb_names[$i];! $latarray[] = $fieldlatitude;! $longarray[] = $fieldlongitude;! $count ++;! $j++;! }! $i++;! }! for ($i = 0; $i < $count; $i++)! {print "$idarray[$i] ; print "$latarray[$i] ; print "$longarray[$i] ; print "\n ;}! mysql_close($con);!

13 Code on the phone httpclient = new DefaultHttpClient(); 91 httppost = new HttpPost(php_script); 92 // Add your data 93 namevaluepairs = new ArrayList<NameValuePair>(2); 94 namevaluepairs.add(new BasicNameValuePair("User ", name.trim())); 95 namevaluepairs.add(new BasicNameValuePair("Password", pass.trim())); 96 httppost.setentity(new UrlEncodedFormEntity(nameValuePairs)); // Execute HTTP Post Request 99 response = httpclient.execute(httppost); 100 inputstream = response.getentity().getcontent(); data = new byte[256]; buffer = new StringBuffer(); 105 int len = 0; 106 while (-1!= (len = inputstream.read(data)) ) 107 { 108 buffer.append(new String(data, 0, len)); 109 } inputstream.close();

14 Uploading images to a mysql server php script enter where image is stored and its Characteristics (size etc) store Image in a folder database Name of image and attributes Send actual images folder Phone

15 Schematic for upload of images String (Base64 encoded) String byte ByteArray OutputStream Bitmap binary (Base64 decoded) image Image Android Server

16 Uploading images to the server <?php $base=$_request['image']; echo $base;// base64 encoded utf-8 string $binary=base64_decode($base);// binary, utf-8 bytes header('content-type: bitmap; charset=utf-8 ); $file = fopen('test.jpg', 'wb'); fwrite($file, $binary);fclose($file); echo '<img src=test.jpg>';?>

17 Sending images from the phone 29 byte [] byte_arr = stream.tobytearray(); 30 String image_str = Base64.encodeBytes(byte_arr); 31 ArrayList<NameValuePair> namevaluepairs = new ArrayList<NameValuePair>(); namevaluepairs.add(new BasicNameValuePair("image",image_str)); try{ 36 HttpClient httpclient = new DefaultHttpClient(); 37 HttpPost httppost = new HttpPost(php_script); 38 httppost.setentity(new UrlEncodedFormEntity(nameValuePairs)); 39 HttpResponse response = httpclient.execute(httppost); 40 String the_string_response = convertresponsetostring(response); 43 }catch(exception e){ }

18 Sending images from the phone (Response) String res = ""; StringBuffer buffer = new StringBuffer(); inputstream = response.getentity().getcontent(); 53 int contentlength = (int) response.getentity().getcontentlength(); 55 if (contentlength < 0){ 56 } 57 else{ 58 byte[] data = new byte[512]; 59 int len = 0; 60 try 61 { 62 while (-1!= (len = inputstream.read(data)) ) 63 { 64 buffer.append(new String(data, 0, len)); 65 } 66 } 67 catch (IOException e) 68 {} 71 try 72 { 73 inputstream.close(); 74 } 75 catch (IOException e) 76 {} 80 res = buffer.tostring();. 83 } 84 return res; 85 }

19 More Sophisticated Service (Relay and Rendezvous Service) Cloud service Relay point in the cloud Mobile device 1 <device name, identifier> Mobile device 2 <device name, identifier>

20 More Sophisticated Service (Path Prediction ) Path prediction service: given a set of location, the service predicts what you destination is. OCR: takes a jpeg image with text and returns the text embedded in the image Text-to-speech: takes upto 10second of speech and converts it to text and returns the text Translate: take text in some other language and uses Microsoft translate to convert it to English and returns the english text back.

JSON Example. This page shows examples of messages formatted using JSON (JavaScript Object Notation). The same text expressed as XML:

JSON Example. This page shows examples of messages formatted using JSON (JavaScript Object Notation). The same text expressed as XML: JSON Example This page shows examples of messages formatted using JSON (JavaScript Object Notation). "glossary": "title": "example glossary", "GlossDiv": "title": "S", "GlossList": "GlossEntry": "ID":

More information

Customer: Arinum Solutions. Project: Sircle.

Customer: Arinum Solutions. Project: Sircle. Customer: Solutions Project: Sircle www.arinum.com www.sircle.net Document Owner: Munira Abbas Date: 09 December 2014 Email: munira@arinum.com Version: 2.0 Documents Control Notice to the Recipient of

More information

Mobile Systeme Grundlagen und Anwendungen standortbezogener Dienste. Location Based Services in the Context of Web 2.0

Mobile Systeme Grundlagen und Anwendungen standortbezogener Dienste. Location Based Services in the Context of Web 2.0 Mobile Systeme Grundlagen und Anwendungen standortbezogener Dienste Location Based Services in the Context of Web 2.0 Department of Informatics - MIN Faculty - University of Hamburg Lecture Summer Term

More information

ANDROID BASED WS SECURITY AND MVC BASED UI REPRESENTATION OF DATA

ANDROID BASED WS SECURITY AND MVC BASED UI REPRESENTATION OF DATA ANDROID BASED WS SECURITY AND MVC BASED UI REPRESENTATION OF DATA Jitendra Ingale, Parikshit mahalle SKNCOE pune,maharashtra,india Email: jits.ingale@gmail.com ABSTRACT: Google s Android is open source;

More information

PHP Development - Introduction

PHP Development - Introduction PHP Development - Introduction Php Hypertext Processor PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP PHP scripts are executed on the server PHP supports many

More information

Mobile Application Development L12: Storage & Communication

Mobile Application Development L12: Storage & Communication Mobile Application Development L12: Storage & Communication Jonathan Diehl (Informatik 10) Hendrik Thüs (Informatik 9) Data Storage & Communication Serialization & File Management SQLite Database CoreData

More information

Disk-Level Encryption

Disk-Level Encryption 2011-2017 Percona, Inc. 1 / 25 Disk-Level Encryption http://www.percona.com/training/ 2011-2017 Percona, Inc. 2 / 25 Disk-Level Encryption OVERVIEW 2011-2017 Percona, Inc. 3 / 25 Introduction Security,

More information

Mobile Development Lecture 9: Android & RESTFUL Services

Mobile Development Lecture 9: Android & RESTFUL Services Mobile Development Lecture 9: Android & RESTFUL Services Mahmoud El-Gayyar elgayyar@ci.suez.edu.eg Elgayyar.weebly.com What is a RESTFUL Web Service REST stands for REpresentational State Transfer. In

More information

Intro to Android Development 3. Accessibility Capstone Dec 10, 2010

Intro to Android Development 3. Accessibility Capstone Dec 10, 2010 Intro to Android Development 3 Accessibility Capstone Dec 10, 2010 Using Web Services HTTP Request HTTP Response Using Web Services HTTP Request HTTP Response webserver some program Why use a web service?

More information

PHP: Cookies, Sessions, Databases. CS174. Chris Pollett. Sep 24, 2008.

PHP: Cookies, Sessions, Databases. CS174. Chris Pollett. Sep 24, 2008. PHP: Cookies, Sessions, Databases. CS174. Chris Pollett. Sep 24, 2008. Outline. How cookies work. Cookies in PHP. Sessions. Databases. Cookies. Sometimes it is useful to remember a client when it comes

More information

UR what? ! URI: Uniform Resource Identifier. " Uniquely identifies a data entity " Obeys a specific syntax " schemename:specificstuff

UR what? ! URI: Uniform Resource Identifier.  Uniquely identifies a data entity  Obeys a specific syntax  schemename:specificstuff CS314-29 Web Protocols URI, URN, URL Internationalisation Role of HTML and XML HTTP and HTTPS interacting via the Web UR what? URI: Uniform Resource Identifier Uniquely identifies a data entity Obeys a

More information

Create Basic Databases and Integrate with a Website Lesson 3

Create Basic Databases and Integrate with a Website Lesson 3 Create Basic Databases and Integrate with a Website Lesson 3 Combining PHP and MySQL This lesson presumes you have covered the basics of PHP as well as working with MySQL. Now you re ready to make the

More information

XML Processing & Web Services. Husni Husni.trunojoyo.ac.id

XML Processing & Web Services. Husni Husni.trunojoyo.ac.id XML Processing & Web Services Husni Husni.trunojoyo.ac.id Based on Randy Connolly and Ricardo Hoar Fundamentals of Web Development, Pearson Education, 2015 Objectives 1 XML Overview 2 XML Processing 3

More information

Design of Secure Location and Message Sharing System for Android Platform

Design of Secure Location and Message Sharing System for Android Platform Design of Secure Location and Message Sharing System for Android Platform Ramesh Shrestha College of Computer Science & Technology Harbin Engineering University Harbin, P.R.China helloramesh123@gmail.com

More information

Movie Explorer. Group Members: Name: Chen Wang JHED: cwang107 Section: 415 Name: Yang Xi JHED: yxi5 Section: 415. Domain Description:

Movie Explorer. Group Members: Name: Chen Wang JHED: cwang107 Section: 415 Name: Yang Xi JHED: yxi5 Section: 415. Domain Description: Movie Explorer Database Project (Phase II) Group Members: Name: Chen Wang JHED: cwang107 Section: 415 Name: Yang Xi JHED: yxi5 Section: 415 Domain Description: We are trying to build a movie explorer system

More information

RESTful Examples. RESTful Examples 1 Apache 3 Jersey 5 JAX-RS 7 ApplicationConfig.java 7 HelloGregg.java 8

RESTful Examples. RESTful Examples 1 Apache 3 Jersey 5 JAX-RS 7 ApplicationConfig.java 7 HelloGregg.java 8 RESTful Examples RESTful Examples 1 Apache 3 Jersey 5 JAX-RS 7 ApplicationConfig.java 7 HelloGregg.java 8 REST in JavaScript 9 #1) createrequest with XMLHttpRequest 9 #2) Must supply a Callback function

More information

Chapter 6 Part2: Manipulating MySQL Databases with PHP

Chapter 6 Part2: Manipulating MySQL Databases with PHP IT215 Web Programming 1 Chapter 6 Part2: Manipulating MySQL Databases with PHP Jakkrit TeCho, Ph.D. Business Information Technology (BIT), Maejo University Phrae Campus Objectives In this chapter, you

More information

This document is downloaded from DR-NTU, Nanyang Technological University Library, Singapore.

This document is downloaded from DR-NTU, Nanyang Technological University Library, Singapore. This document is downloaded from DR-NTU, Nanyang Technological University Library, Singapore. Title Web access to cloud system Author(s) Tao, Qingyi Citation Tao, Q. (2014). Web access to cloud system.

More information

CNIT 129S: Securing Web Applications. Ch 3: Web Application Technologies

CNIT 129S: Securing Web Applications. Ch 3: Web Application Technologies CNIT 129S: Securing Web Applications Ch 3: Web Application Technologies HTTP Hypertext Transfer Protocol (HTTP) Connectionless protocol Client sends an HTTP request to a Web server Gets an HTTP response

More information

Sample Relational Database Modern Information Systems

Sample Relational Database Modern Information Systems Sample Relational Database Modern Information Systems WT 20xx/20xx Name Matriculation# audiobook-library (idea from audiobook-library Graz-Mariahilf) Table of Contents: Database Schema:... 2 Practical

More information

Jonathan Wald and Jason Zigelbaum (A project report written under the guidance of Prof.

Jonathan Wald and Jason Zigelbaum (A project report written under the guidance of Prof. 1 of 12 Jonathan Wald jwald@wustl.edu and Jason Zigelbaum jczigelb@wustl.edu (A project report written under the guidance of Prof. Raj Jain) Download Table of Content: 1. Introduction 1.1 What is OpenPacketPro

More information

Security Guide. Configuration of Permissions

Security Guide. Configuration of Permissions Guide Configuration of Permissions 1 Content... 2 2 Concepts of the Report Permissions... 3 2.1 Security Mechanisms... 3 2.1.1 Report Locations... 3 2.1.2 Report Permissions... 3 2.2 System Requirements...

More information

Introduction. Why Would I Want A Database?

Introduction. Why Would I Want A Database? Introduction For many people, the main reason for learning a scripting language like PHP is because of the interaction with databases it can offer. In this tutorial I will show you how to use PHP and the

More information

Sample Relational Database

Sample Relational Database Sample Relational Database Student: Alexander Rudolf Gruber MNr: 9812938 Table of Contents 1 Database Schema:... 2 2 Practical implementation of the database with mysql... 3 3 Inserting Test Data with

More information

Networks and Web for Health Informatics (HINF 6220) Tutorial 13 : PHP 29 Oct 2015

Networks and Web for Health Informatics (HINF 6220) Tutorial 13 : PHP 29 Oct 2015 Networks and Web for Health Informatics (HINF 6220) Tutorial 13 : PHP 29 Oct 2015 PHP Arrays o Arrays are single variables that store multiple values at the same time! o Consider having a list of values

More information

All India Council For Research & Training

All India Council For Research & Training WEB DEVELOPMENT & DESIGNING Are you looking for a master program in web that covers everything related to web? Then yes! You have landed up on the right page. Web Master Course is an advanced web designing,

More information

DATABASE SYSTEMS. Database programming in a web environment. Database System Course, 2016

DATABASE SYSTEMS. Database programming in a web environment. Database System Course, 2016 DATABASE SYSTEMS Database programming in a web environment Database System Course, 2016 AGENDA FOR TODAY Advanced Mysql More than just SELECT Creating tables MySQL optimizations: Storage engines, indexing.

More information

Database Connectivity using PHP Some Points to Remember:

Database Connectivity using PHP Some Points to Remember: Database Connectivity using PHP Some Points to Remember: 1. PHP has a boolean datatype which can have 2 values: true or false. However, in PHP, the number 0 (zero) is also considered as equivalent to False.

More information

User Interaction: jquery

User Interaction: jquery User Interaction: jquery Assoc. Professor Donald J. Patterson INF 133 Fall 2012 1 jquery A JavaScript Library Cross-browser Free (beer & speech) It supports manipulating HTML elements (DOM) animations

More information

Family Map Server Specification

Family Map Server Specification Family Map Server Specification Acknowledgements The Family Map project was created by Jordan Wild. Thanks to Jordan for this significant contribution. Family Map Introduction Family Map is an application

More information

What is MySQL? [Document provides the fundamental operations of PHP-MySQL connectivity]

What is MySQL? [Document provides the fundamental operations of PHP-MySQL connectivity] What is MySQL? [Document provides the fundamental operations of PHP-MySQL connectivity] MySQL is a database. A database defines a structure for storing information. In a database, there are tables. Just

More information

Coding Menggunakan software Eclipse: Mainactivity.java (coding untuk tampilan login): package com.bella.pengontrol_otomatis;

Coding Menggunakan software Eclipse: Mainactivity.java (coding untuk tampilan login): package com.bella.pengontrol_otomatis; Coding Menggunakan software Eclipse: Mainactivity.java (coding untuk tampilan login): package com.bella.pengontrol_otomatis; import android.app.activity; import android.os.bundle; import android.os.countdowntimer;

More information

PHPKB API Reference Guide

PHPKB API Reference Guide PHPKB API Reference Guide KB Administrator Fri, Apr 9, 09 User Manual 96 0 This document provides details on how to use the API available in PHPKB knowledge base management software. It acts as a reference

More information

Security Guide. Configuration of Report and System Permissions

Security Guide. Configuration of Report and System Permissions Guide Configuration of Report and System Permissions 1 Content... 2 2 Concepts of the Report Permissions... 2 2.1 Mechanisms... 3 2.1.1 Report Locations... 3 2.1.2 Report Permissions... 3 2.2 System Requirements...

More information

EPHP a tool for learning the basics of PHP development. Nick Whitelegg School of Media Arts and Technology Southampton Solent University

EPHP a tool for learning the basics of PHP development. Nick Whitelegg School of Media Arts and Technology Southampton Solent University EPHP a tool for learning the basics of PHP development Nick Whitelegg School of Media Arts and Technology Southampton Solent University My background Lecturer at Southampton Solent University since 2003

More information

Project 2: Web Security

Project 2: Web Security EECS 388 September 30, 2016 Intro to Computer Security Project 2: Web Security Project 2: Web Security This project is due on Thursday, October 13 at 6 p.m. and counts for 8% of your course grade. Late

More information

Lecture 13: MySQL and PHP. Monday, March 26, 2018

Lecture 13: MySQL and PHP. Monday, March 26, 2018 Lecture 13: MySQL and PHP Monday, March 26, 2018 MySQL The Old Way In older versions of PHP, we typically used functions that started with mysql_ that did not belong to a class For example: o o o o mysql_connect()

More information

FIRE (3473) Dallas Los Angeles Sydney New York London

FIRE (3473) Dallas Los Angeles Sydney New York London Traditional project life cycles lasting 12+ months are increasingly putting organizations at a disadvantage to more nimble startups that can innovate and change direction at a faster pace. New Agile development

More information

Static analysis of PHP applications

Static analysis of PHP applications Static analysis of PHP applications Ondřej Šerý DISTRIBUTED SYSTEMS RESEARCH GROUP http://dsrg.mff.cuni.cz CHARLES UNIVERSITY PRAGUE Faculty of Mathematics and Physics References G. Wassermann, Z. Su:

More information

DATABASE SYSTEMS. Database programming in a web environment. Database System Course,

DATABASE SYSTEMS. Database programming in a web environment. Database System Course, DATABASE SYSTEMS Database programming in a web environment Database System Course, 2016-2017 AGENDA FOR TODAY The final project Advanced Mysql Database programming Recap: DB servers in the web Web programming

More information

Princess Nourah bint Abdulrahman University. Computer Sciences Department

Princess Nourah bint Abdulrahman University. Computer Sciences Department Princess Nourah bint Abdulrahman University Computer Sciences Department 1 And use http://www.w3schools.com/ PHP Part 3 Objectives Creating a new MySQL Database using Create & Check connection with Database

More information

Family Map Server Specification

Family Map Server Specification Family Map Server Specification Acknowledgements Last Modified: January 5, 2018 The Family Map project was created by Jordan Wild. Thanks to Jordan for this significant contribution. Family Map Introduction

More information

More loops. Control structures / flow control. while loops. Loops / Iteration / doing things over and over and over and over...

More loops. Control structures / flow control. while loops. Loops / Iteration / doing things over and over and over and over... Control structures / flow control More loops while loops if... else Switch for loops while... do.. do... while... Much of this material is explained in PHP programming 2nd Ed. Chap 2 Control structures

More information

WooCommerce REST API Integration. October 27, 2018

WooCommerce REST API Integration. October 27, 2018 WooCommerce REST API Integration October 27, 2018 Andrew Duncan CEO/Owner/Developer Databuzz The ecommerce platform for WordPress The world s most customisable ecommerce platform The most popular ecommerce

More information

Ninox API. Ninox API Page 1 of 15. Ninox Version Document version 1.0.0

Ninox API. Ninox API Page 1 of 15. Ninox Version Document version 1.0.0 Ninox API Ninox Version 2.3.4 Document version 1.0.0 Ninox 2.3.4 API 1.0.0 Page 1 of 15 Table of Contents Introduction 3 Obtain an API Key 3 Zapier 4 Ninox REST API 5 Authentication 5 Content-Type 5 Get

More information

Adding A PHP+MySQL Hit Counter to your Website

Adding A PHP+MySQL Hit Counter to your Website Adding A PHP+MySQL Hit Counter to your Website Setting up MySQL First off, decide what you want to keep track of. In this case, let s commit to tracking total number of hits on each of a number of web

More information

External HTTPS Trigger AXIS Camera Station 5.06 and above

External HTTPS Trigger AXIS Camera Station 5.06 and above HOW TO External HTTPS Trigger AXIS Camera Station 5.06 and above Created: October 17, 2016 Last updated: November 19, 2016 Rev: 1.2 1 Please note that AXIS does not take any responsibility for how this

More information

Accessing the Progress OpenEdge AppServer. From Progress Rollbase. Using Object Script

Accessing the Progress OpenEdge AppServer. From Progress Rollbase. Using Object Script Accessing the Progress OpenEdge AppServer From Progress Rollbase Using Object Script Introduction Progress Rollbase provides a simple way to create a web-based, multi-tenanted and customizable application

More information

Web Security. Attacks on Servers 11/6/2017 1

Web Security. Attacks on Servers 11/6/2017 1 Web Security Attacks on Servers 11/6/2017 1 Server side Scripting Javascript code is executed on the client side on a user s web browser Server side code is executed on the server side. The server side

More information

PHP. MIT 6.470, IAP 2010 Yafim Landa

PHP. MIT 6.470, IAP 2010 Yafim Landa PHP MIT 6.470, IAP 2010 Yafim Landa (landa@mit.edu) LAMP We ll use Linux, Apache, MySQL, and PHP for this course There are alternatives Windows with IIS and ASP Java with Tomcat Other database systems

More information

Introduction to Pyparsing: An Object-oriented Easy-to-Use Toolkit for Building Recursive Descent P... Page 1 of 15

Introduction to Pyparsing: An Object-oriented Easy-to-Use Toolkit for Building Recursive Descent P... Page 1 of 15 Introduction to Pyparsing: An Object-oriented Easy-to-Use Toolkit for Building Recursive Descent P... Page 1 of 15 Introduction to Pyparsing: An Object-oriented Easyto-Use Toolkit for Building Recursive

More information

Alpha College of Engineering and Technology. Question Bank

Alpha College of Engineering and Technology. Question Bank Alpha College of Engineering and Technology Department of Information Technology and Computer Engineering Chapter 1 WEB Technology (2160708) Question Bank 1. Give the full name of the following acronyms.

More information

Family Map Server Specification

Family Map Server Specification Family Map Server Specification Acknowledgements The Family Map project was created by Jordan Wild. Thanks to Jordan for this significant contribution. Family Map Introduction Family Map is an application

More information

Android Help. Section 8. Eric Xiao

Android Help. Section 8. Eric Xiao Android Help Section 8 Eric Xiao The Midterm That happened Any residual questions? New Assignment! Make a low-fi prototype Must be interactive Use balsamiq or paper Test it with users 3 tasks Test task

More information

Diabolical Developer s Intro to FaaS for Java Developers

Diabolical Developer s Intro to FaaS for Java Developers Diabolical Developer s Intro to FaaS for Java Developers Community Leader Devs+502 & JDuchess Chapter Guatemala Ex-JUG Member Guatemala Java Users Group (GuateJUG) Chief Technology Officer (CTO) at Produactivity

More information

CNIT 129S: Securing Web Applications. Ch 10: Attacking Back-End Components

CNIT 129S: Securing Web Applications. Ch 10: Attacking Back-End Components CNIT 129S: Securing Web Applications Ch 10: Attacking Back-End Components Injecting OS Commands Web server platforms often have APIs To access the filesystem, interface with other processes, and for network

More information

PROCE55 Mobile: Web API App. Web API. https://www.rijksmuseum.nl/api/...

PROCE55 Mobile: Web API App. Web API. https://www.rijksmuseum.nl/api/... PROCE55 Mobile: Web API App PROCE55 Mobile with Test Web API App Web API App Example This example shows how to access a typical Web API using your mobile phone via Internet. The returned data is in JSON

More information

(System) Integrity attacks System Abuse, Malicious File upload, SQL Injection

(System) Integrity attacks System Abuse, Malicious File upload, SQL Injection Pattern Recognition and Applications Lab (System) Integrity attacks System Abuse, Malicious File upload, SQL Injection Igino Corona igino.corona (at) diee.unica.it Computer Security April 9, 2018 Department

More information

CMSC 330: Organization of Programming Languages. Markup & Query Languages

CMSC 330: Organization of Programming Languages. Markup & Query Languages CMSC 330: Organization of Programming Languages Markup & Query Languages Other Language Types Markup languages Set of annotations to text Query languages Make queries to databases & information systems

More information

CMSC 330: Organization of Programming Languages

CMSC 330: Organization of Programming Languages CMSC 330: Organization of Programming Languages Markup & Query Languages Other Language Types Markup languages Set of annotations to text Query languages Make queries to databases & information systems

More information

MOBILE CLIENT FOR ONLINE DICTIONARY. Constantin Lucian ALDEA 1. Abstract

MOBILE CLIENT FOR ONLINE DICTIONARY. Constantin Lucian ALDEA 1. Abstract Bulletin of the Transilvania University of Braşov Vol 4(53), No. 2-2011 Series III: Mathematics, Informatics, Physics, 123-128 MOBILE CLIENT FOR ONLINE DICTIONARY Constantin Lucian ALDEA 1 Abstract The

More information

Project Title REPRESENTATION OF ELECTRICAL NETWORK USING GOOGLE MAP API. Submitted by: Submitted to: SEMANTA RAJ NEUPANE, Research Assistant,

Project Title REPRESENTATION OF ELECTRICAL NETWORK USING GOOGLE MAP API. Submitted by: Submitted to: SEMANTA RAJ NEUPANE, Research Assistant, - 1 - Project Title REPRESENTATION OF ELECTRICAL NETWORK USING GOOGLE MAP API Submitted by: SEMANTA RAJ NEUPANE, Research Assistant, Department of Electrical Energy Engineering, Tampere University of Technology

More information

Custom Location Extension

Custom Location Extension Custom Location Extension User Guide Version 1.4.9 Custom Location Extension User Guide 2 Contents Contents Legal Notices...3 Document Information... 4 Chapter 1: Overview... 5 What is the Custom Location

More information

ArcGIS for Server Administration API for C# Developers. Philip

ArcGIS for Server Administration API for C# Developers. Philip ArcGIS for Server Administration API for C# Developers Philip Heede @pheede Content What is the REST admin API all about? Why script it- and why script it using C#? How to do it! What is the ArcGIS for

More information

Assignment 6: Web Security

Assignment 6: Web Security COS 432 November 20, 2017 Information Security Assignment 6: Web Security Assignment 6: Web Security This project is due on Monday, December 4 at 11:59 p.m.. Late submissions will be penalized by 10% per

More information

Technical Note. Isilon OneFS. Isilon Swift Technical Note. Version August 2017

Technical Note. Isilon OneFS. Isilon Swift Technical Note. Version August 2017 Isilon OneFS Version 8.0.0 Isilon Swift Technical Note August 2017 This section contains the following topics: Introduction... 2 Supported libraries, SDKs, and interfaces...2 Unsupported libraries and

More information

TECHNICAL NOTES. Configuring BrightAuthor for BSNEE

TECHNICAL NOTES. Configuring BrightAuthor for BSNEE TECHNICAL NOTES Configuring BrightAuthor for BSNEE Configurator version 1.06 Supported BrightAuthor versions: 3.5.0.34 to 4.4.0.x Supported BSNEE versions: 3.5 to 4.2 BrightSign, LLC. 16780 Lark Ave.,

More information

Integrating with Cellsynt's SMS gateway via HTTP interface (technical documentation)

Integrating with Cellsynt's SMS gateway via HTTP interface (technical documentation) Integrating with Cellsynt's SMS gateway via HTTP interface (technical documentation) Integrating with Cellsynt's SMS gateway via HTTP interface (technical documentation) Table of Contents Part I Introduction

More information

Store Locator Magento 2 USER MANUAL E: P: +1-(248)

Store Locator Magento 2 USER MANUAL E:  P: +1-(248) Store Locator Magento 2 USER MANUAL MAGEDELIGHT.COM SUPPORT E: INFO@MAGEDELIGHT.COM SUPPORT@MAGEDELIGHT.COM P: +1-(248)-275-1202 P: License Key After successfully installing the Store Locator extension

More information

Static Webpage Development

Static Webpage Development Dear Student, Based upon your enquiry we are pleased to send you the course curriculum for PHP Given below is the brief description for the course you are looking for: - Static Webpage Development Introduction

More information

Web Architecture and Technologies

Web Architecture and Technologies Web Architecture and Technologies Ambient intelligence Fulvio Corno Politecnico di Torino, 2015/2016 Goal Understanding Web technologies Adopted for User Interfaces Adopted for Distributed Application

More information

Developing Online Databases and Serving Biological Research Data

Developing Online Databases and Serving Biological Research Data Developing Online Databases and Serving Biological Research Data 1 Last Time PHP scripts can be used to create better web interfaces for specific database schemas If you want something more user friendly

More information

Chapter. Accessing MySQL Databases Using PHP

Chapter. Accessing MySQL Databases Using PHP Chapter 12 Accessing MySQL Databases Using PHP 150 Essential PHP fast Introduction In the previous chapter we considered how to create databases using MySQL. While this is useful, it does not enable us

More information

Talend Component tgoogledrive

Talend Component tgoogledrive Talend Component tgoogledrive Purpose and procedure This component manages files on a Google Drive. The component provides these capabilities: 1. Providing only the client for other tgoogledrive components

More information

10/27/17. Network Connec1on. Outline. Connect to the Internet. Connect to the Internet. Perform Network Operations. Perform Network Operations

10/27/17. Network Connec1on. Outline. Connect to the Internet. Connect to the Internet. Perform Network Operations. Perform Network Operations Connecting to the Internet Outline Network Connec1on CS443 Mobile Applica1ons Instructor: Bo Sheng Perform network operations Manage network usage Parsing data 1 2 Connect to the Internet Permissions in

More information

Aim behind client server architecture Characteristics of client and server Types of architectures

Aim behind client server architecture Characteristics of client and server Types of architectures QA Automation - API Automation - All in one course Course Summary: In detailed, easy, step by step, real time, practical and well organized Course Not required to have any prior programming knowledge,

More information

Our Team. Introduction. Language Features. COMSW4115 Proposal

Our Team. Introduction. Language Features. COMSW4115 Proposal RAPID (RAPID API Dialect) COMSW4115 Proposal Our Team Manager Ben Edelstein, bie2103 Language Guru Dan Schlosser, drs2161 System Architect Brendon Fish, bjf2127 System Integrator Nate Brennand, nsb2142

More information

Chapters 10 & 11 PHP AND MYSQL

Chapters 10 & 11 PHP AND MYSQL Chapters 10 & 11 PHP AND MYSQL Getting Started The database for a Web app would be created before accessing it from the web. Complete the design and create the tables independently. Use phpmyadmin, for

More information

Daniel Pittman October 17, 2011

Daniel Pittman October 17, 2011 Daniel Pittman October 17, 2011 SELECT target-list FROM relation-list WHERE qualification target-list A list of attributes of relations in relation-list relation-list A list of relation names qualification

More information

Project Requirements Document v2

Project Requirements Document v2 Project Requirements Document v2 Project Title : Automated 3 Way Match (tentative) Team Name : $-flow Members : Email : Millan Batra [Lead] millanbatra@umail.ucsb.edu Yoon Lee [Scribe] yoonlee@ucsb.edu

More information

Lesson 12: JavaScript and AJAX

Lesson 12: JavaScript and AJAX Lesson 12: JavaScript and AJAX Objectives Define fundamental AJAX elements and procedures Diagram common interactions among JavaScript, XML and XHTML Identify key XML structures and restrictions in relation

More information

PHP Introduction. Some info on MySQL which we will cover in the next workshop...

PHP Introduction. Some info on MySQL which we will cover in the next workshop... PHP and MYSQL PHP Introduction PHP is a recursive acronym for PHP: Hypertext Preprocessor -- It is a widely-used open source general-purpose serverside scripting language that is especially suited for

More information

CMSC 628: Introduction to Mobile Computing

CMSC 628: Introduction to Mobile Computing CMSC 628: Introduction to Mobile Computing Nilanjan Banerjee University of Maryland Baltimore County nilanb@umbc.edu http://www.csee.umbc.edu/~nilanb/teaching/628/ Introduction to Mobile Computing 1 Why

More information

MYSQL DATABASE ACCESS WITH PHP

MYSQL DATABASE ACCESS WITH PHP MYSQL DATABASE ACCESS WITH PHP Fall 2010 CSCI 2910 Server-Side Web Programming Typical web application interaction Database Server 3 tiered architecture Security in this interaction is critical Web Server

More information

Programming with Android: Network Operations. Dipartimento di Scienze dell Informazione Università di Bologna

Programming with Android: Network Operations. Dipartimento di Scienze dell Informazione Università di Bologna Programming with Android: Network Operations Luca Bedogni Marco Di Felice Dipartimento di Scienze dell Informazione Università di Bologna Outline Network operations: WebView Network operations: WebView

More information

IBM Image-Analysis Node.js

IBM Image-Analysis Node.js IBM Image-Analysis Node.js Cognitive Solutions Application Development IBM Global Business Partners Duration: 90 minutes Updated: Feb 14, 2018 Klaus-Peter Schlotter kps@de.ibm.com Version 1 Overview The

More information

string signature = CreateSignature(secretKey, messagerepresentation); // hwce6v2ka0kkb0gbbik0gsw5qacs3+vj+m+wn/8k9ee=

string signature = CreateSignature(secretKey, messagerepresentation); // hwce6v2ka0kkb0gbbik0gsw5qacs3+vj+m+wn/8k9ee= Code Examples See also this tutorial for more information about using the ASP.NET web API client libraries. Making a GET request Let's read orders created after a particular date. For security reasons,

More information

Tutorials Php Y Jquery Mysql Database Without Refreshing Code

Tutorials Php Y Jquery Mysql Database Without Refreshing Code Tutorials Php Y Jquery Mysql Database Without Refreshing Code Code for Pagination using Php and JQuery. This code for pagination in PHP and MySql gets. Tutorial focused on Programming, Jquery, Ajax, PHP,

More information

Building a Web-based Health Promotion Database

Building a Web-based Health Promotion Database 6 th International Conference on Applied Informatics Eger, Hungary, January 27 31, 2004. Building a Web-based Health Promotion Database Ádám Rutkovszky University of Debrecen, Faculty of Economics Department

More information

Type of Submission: Article Title: Watson Explorer REST API Tutorial #1 Subtitle: Java Programming. Keywords: WEX, WCA, analytics, Watson

Type of Submission: Article Title: Watson Explorer REST API Tutorial #1 Subtitle: Java Programming. Keywords: WEX, WCA, analytics, Watson Type of Submission: Article Title: Watson Explorer REST API Tutorial #1 Subtitle: Java Programming Keywords: WEX, WCA, analytics, Watson Prefix: Mr. Given: Kameron Middle: A. Family: Cole Suffix: Job Title:

More information

RESTful API Specification

RESTful API Specification RESTful API Specification Contents Creating Group Conference Getting Group Conference Editing Group Conference Deleting Group Conference Getting List of Group Conference Getting User Address Book Adding

More information

Server side scripting and databases

Server side scripting and databases Example table Server side scripting and databases student How Web Applications interact with server side databases - part 2 student kuid lastname money char char int student table Connecting and using

More information

Java.net Package and Classes(Url, UrlConnection, HttpUrlConnection)

Java.net Package and Classes(Url, UrlConnection, HttpUrlConnection) Java.net Package and Classes(Url, UrlConnection, HttpUrlConnection) Sisoft Technologies Pvt Ltd SRC E7, Shipra Riviera Bazar, Gyan Khand-3, Indirapuram, Ghaziabad Website: www.sisoft.in Email:info@sisoft.in

More information

PHP DBTreeView User manual

PHP DBTreeView User manual PHP DBTreeView User manual Version 1.0 http://rcardon.free.fr/dbtreeview 2007, Rodolphe CARDON DE LICHTBUER (rcardon@free.fr) PHP DBTreeView - version 1.0 2 1 Table of contents 1 TABLE OF CONTENTS 2 2

More information

quiz 1 details wed nov 17, 1pm see handout for locations covers weeks 0 through 10, emphasis on 7 onward closed book bring a , 2-sided cheat she

quiz 1 details wed nov 17, 1pm see handout for locations covers weeks 0 through 10, emphasis on 7 onward closed book bring a , 2-sided cheat she quiz 1 details wed nov 17, 1pm see handout for locations covers weeks 0 through 10, emphasis on 7 onward closed book bring a 8.5 11, 2-sided cheat sheet 75 minutes 15% of final grade resources old quizzes

More information

Trusted Source SSO. Document version 2.3 Last updated: 30/10/2017.

Trusted Source SSO. Document version 2.3 Last updated: 30/10/2017. Trusted Source SSO Document version 2.3 Last updated: 30/10/2017 www.iamcloud.com TABLE OF CONTENTS 1 INTRODUCTION... 1 2 PREREQUISITES... 2 2.1 Agent... 2 2.2 SPS Client... Error! Bookmark not defined.

More information

Lecture 7: Web hacking 3, SQL injection, Xpath injection, Server side template injection, File inclusion

Lecture 7: Web hacking 3, SQL injection, Xpath injection, Server side template injection, File inclusion IN5290 Ethical Hacking Lecture 7: Web hacking 3, SQL injection, Xpath injection, Server side template injection, File inclusion Universitetet i Oslo Laszlo Erdödi Lecture Overview What is SQL injection

More information

Using PHP with MYSQL

Using PHP with MYSQL Using PHP with MYSQL PHP & MYSQL So far you've learned the theory behind relational databases and worked directly with MySQL through the mysql command-line tool. Now it's time to get your PHP scripts talking

More information

A Web-Based Introduction

A Web-Based Introduction A Web-Based Introduction to Programming Essential Algorithms, Syntax, and Control Structures Using PHP, HTML, and MySQL Third Edition Mike O'Kane Carolina Academic Press Durham, North Carolina Contents

More information

Webomania Solutions Pvt. Ltd. 2017

Webomania Solutions Pvt. Ltd. 2017 OpenDocMan Webomania Solutions Pvt. Ltd. 2017 OpenDocMan stands for Open Source Document Management System(DMS). OpenDocMan is totally free, web-based programming written in PHPdesigned to comply with

More information