Here is an example of a similar function from another program that I use that has no web server:
HTTPRequest>URL,[LocalFilename],Method,[POST_Data],Result_Variable[,ProxyServer,ProxyPort,ProxyUsername,ProxyPassword]
Retrieves a web document via the HTTP protocol using either GET or POST methods.
URL: URL of document to retrieve
LocalFileName: Optional (may be left blank) - local file to save response to.
Method: GET or POST
Post_Data: Data to Post to URL if using POST method. Use name=value pairs separated by '&'. See example below.
Result_Variable: Stores result of operation. If successful this will contain the HTML returned. Otherwise it will contain an error message.
ProxyServer: Optional - if using a proxy server set this to domain or IP address of proxy server.
ProxyPort: Optional - if using a proxy server set to port number of proxy server.
ProxyUsername: Optional - if using a proxy server that needs a username.
ProxyPassword: Optional - if using a proxy server that needs a password.
By default there is no timeout for the HTTPRequest command and requests will wait indefinitely if the server fails to respond. To change this set the HTTP_TIMEOUT value to the number of seconds to wait.
By default HTTPRequest will automatically resolve redirects. To disable this behaviour set HTTP_REDIRECTS to 0.
For basic authentication where a username and password is required by the server before the request will complete put the username and password in the URL using the following format:
www.server.com/etc.etc]http://username:password@www.server.com/etc.etc[/url]
Abbreviation : HTT
Example
The following line does a simple GET request and saves the resulting HTML to a variable called HTMLResponse:
HTTPRequest>
http://www.abcmjtnet.com,,GET,,HTMLResponse =================
The following line does the same thing but also saves the output to a file:
HTTPRequest>
http://www.abcmjtnet.com,d:\HTML\abcmjtnet.html,GET,,HTMLResponse
=================
This demonstrates a POST operation, sending name=value pairs to the page:
Let>PostData=email=myemail@home.com&name=Joe Bloggs
HTTPRequest>
http://www.someplace.com/someform.html,,POST,PostData,HTMLResponse I use this program's function now to fill in forms and get results automatically. Will run on any Windows platform. Does not require a local webserver. Doing this from Sesame would be a great enhancement. I can provide you with more info about the source if you are interested.