Is there a platform independent way to launch a web browser from Pharo?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there a platform independent way to launch a web browser from Pharo?

Andy Burnett
I want to use Pharo's new OAuth capabilities to access google's spreadsheets. However, I don't want to build a webapp, I just want to authenticate, and then pull the data down into Pharo.

In order to do this, I need to initiate a session, with a web browser. Do I have to use OSProcess for this, or is there a mechanism already built in?

Cheers
Andy
Reply | Threaded
Open this post in threaded view
|

Re: Is there a platform independent way to launch a web browser from Pharo?

Igor Stasenko
On 23 January 2013 21:36, Andy Burnett <[hidden email]> wrote:
> I want to use Pharo's new OAuth capabilities to access google's
> spreadsheets. However, I don't want to build a webapp, I just want to
> authenticate, and then pull the data down into Pharo.
>
> In order to do this, I need to initiate a session, with a web browser. Do I
> have to use OSProcess for this, or is there a mechanism already built in?
>
why you need a browser if you have Zinc?
You can initiate HTTP session from Pharo itself.
Or you need something extensive, like cookies etc?

> Cheers
> Andy



--
Best regards,
Igor Stasenko.

Reply | Threaded
Open this post in threaded view
|

Re: Is there a platform independent way to launch a web browser from Pharo?

Sven Van Caekenberghe-2

On 23 Jan 2013, at 21:44, Igor Stasenko <[hidden email]> wrote:

> On 23 January 2013 21:36, Andy Burnett <[hidden email]> wrote:
>> I want to use Pharo's new OAuth capabilities to access google's
>> spreadsheets. However, I don't want to build a webapp, I just want to
>> authenticate, and then pull the data down into Pharo.
>>
>> In order to do this, I need to initiate a session, with a web browser. Do I
>> have to use OSProcess for this, or is there a mechanism already built in?
>>
> why you need a browser if you have Zinc?
> You can initiate HTTP session from Pharo itself.
> Or you need something extensive, like cookies etc?

This is special stuff related to SSO: the other end, Google, Facebook, Twitter, etc, runs the authentication/authorization using their web apps, this is very hard, probably impossible to do with a programmatic HTTP client.

>> Cheers
>> Andy
>
> --
> Best regards,
> Igor Stasenko.

Reply | Threaded
Open this post in threaded view
|

Re: Is there a platform independent way to launch a web browser from Pharo?

Sean P. DeNigris
Administrator
In reply to this post by Andy Burnett
Andy Burnett wrote
In order to do this, I need to initiate a session, with a web browser
Search for ExternalWebBrowser on Squeaksource for a pre-made solution... or use OSProcess, which would be easy enough... or I guess you could probably use NB...
Cheers,
Sean