Re: Question on using tcp.httpClient
- I don't think Frontier supports https, but Seth, you're the expert on
this right? Didn't you build some sort of add-on? Can you answer Andy?
--- In email@example.com, Andy Sylvester <andy@...> wrote:
> I am playing around with the Delicious API in Frontier. Last year,
> they changed the API to use https instead of http. I am trying to use
> tcp.httpClient to access the API, but I am having some difficulty.
> Here is an example line from my script:
> s = tcp.httpClient (method:"GET", server:"api.del.icio.us", port:443,
> path:"/v1/posts/recent?count=2", username:"myusername",
> password:"mypassword", debug:true)
> When I run this, I get the error message "Can't read stream because
> the TCP connection was closed unexpectedly." The error dialog box
> goes to system.verbs.builtins.tcp.httpClient.
> If I change the server entry to "https://api.del.icio.us", I get the
> error message "Can't open stream because TCP/IP error code -3260 -
> Connection refused." The error dialog box goes to
> Are there other parameters for this verb that can help me do a https
> Andy Sylvester
- On 11/30/2007, Andy Sylvester said:
>I am playing around with the Delicious API in Frontier. LastThe problem you're having is caused by Frontier's complete lack
>year, they changed the API to use https instead of http. I am
>trying to use tcp.httpClient to access the API, but I am having
for the encryption necessary to do TLS (HTTPS).
You have two options:
1. The TLS DLL and scripts (originally written by my company,
Macrobyte Resources), now owned by the makers of Manila (still
Userland Software?). It will handle your needs
long as you're running on Windows or on a PPC Mac.
Mac Intel can't run any DLLs, so that's not a TLS problem.
They distribute TLS freely, as long as you're not
setting up a
server for it. (In which case, you'd have to buy a license.)
2. Call out to the shell (on OS X) and use CURL or something
Hope that helps!
- At 6:04 PM -0500 12/1/2007, Seth wrote:
> 2. Call out to the shell (on OS X) and use CURL or somethingI haven't tried calling curl, so that could be a viable free solution.
But if you run into another dead end, NoLobe's Interarchy 8 supports
FTP, FTP/SSH, FTP/SSL-TLS, HTTP, HTTPs, WebDAV, WebDAVs, iDisk and
Amazon S3. I'm not using HTTPS, but I am using it for HTTP as well as
FTP and SFTP (up and down). The suites.ftpClient interface to
Interarchy seemed to be broken, so I hacked up some AppleScript glue
to replace it. Contact me directly if you want to try this approach.