An HTTP client for Scilab

An HTTP client for Scilab Commit Details

Date:2012-04-03 14:31:37 (6 years 6 months ago)
Author:Aditya Sengupta
Branch:master
Commit:fc8ae19bd4b7ef2b8a6f3b605aa73e43a7cfcb1d
Parents: 8d08ff122547ad343d27d3c000f9ab9454a3c80e
Message:Added skeleton functions for GET

Changes:
Amacros/http_get.sci (full)
Amacros/http_get_url.sci (full)
Amacros/http_url_gen.sci (full)
Amacros/http_url_split.sci (full)

File differences

macros/http_get.sci
1
2
3
4
5
function response = http_get(host, resource, port, varargin)
// varargin is the list of parameters to be sent using the GET request
SOCKET_open(count, host, port) // The "count" variable has to be an incremented global
endfunction
macros/http_get_url.sci
1
2
3
4
5
function response = http_get_url(URL, varargin)
[host, resource, port] = http_split(URL) // Get hostname and resource from URL
response = http_get(host, resource, port, varargin)
endfunction
macros/http_url_gen.sci
1
2
3
4
function URL = http_url_gen(host, resource, port)
// This function returns a URL given the host and resource
endfunction
macros/http_url_split.sci
1
2
3
4
function [host, resource, port] = http_url_split(URL)
// This function returns the hostname, resource path and port of a given URL
endfunction

Archive Download the corresponding diff file

Branches