An HTTP client for Scilab

An HTTP client for Scilab Commit Details

Date:2012-04-03 15:14:33 (6 years 5 months ago)
Author:Aditya Sengupta
Branch:master
Commit:114ac7ab3a55e08399a82e8a1c084bc23cace3a3
Parents: d207c4271190b2d8962e06bc5b5fc96b60ac09c6
Message:Added POST function skeletons

Changes:
Amacros/http_post.sci (full)
Amacros/http_post_url.sci (full)

File differences

macros/http_post.sci
1
2
3
4
5
6
function response = http_post(host, resource, port, varargin)
// This POSTs a request to a resource on host at port.
// This will need to use the following functions:
// 1. http_header
// 2. http_urlencode
endfunction
macros/http_post_url.sci
1
2
3
4
function response = http_post_url(URL, varargin)
[host, resource, port] = http_split(URL) // Get hostname and resource from URL
response = http_post(host, resource, port, varargin)
endfunction

Archive Download the corresponding diff file

Branches