[thelist] Gmail / RSS accessing from script

Chris Ditty cditty at gmail.com
Thu Nov 9 10:18:02 CST 2006


Crap.  I was really hoping that I wouldn't have to get too involved in
writing something.

Thanks for the info.  Time to dust off the curl 101 braincells.  :)

On 11/9/06, Edwin Martin <edwin at bitstorm.org> wrote:
>
> Chris Ditty schreef:
> > I am trying to write a small module to display my gmail email on my
> custom
> > startup page.  I am using this url with the correct userid and
> > password - https://USERNAME:PASSWORD@gmail.google.com/gmail/feed/atom
> > .
> >
> > When I put it in the web browser, it acts like it is supposed to.  But
> when
> > I try and script it, it returns a 401 unauthorized error.  I get the
> same
> > error when I try a wget also.
> >
> > Has anyone had any success in getting this to work from a script?  The
> > output is supposed to be simple RSS once I get past this error.
> >
> Just fetching the mentioned URL won't work. You have to authenticate via
> the HTTP-headers. It's not really hard to make.
>
> You also mention wget. Wget supports authentication. Use:
>
> wget --http-user=USERNAME --http-passwd=PASSWORD
> https://gmail.google.com/gmail/feed/atom
>
> Type wget --help for all wget options.
>
> Edwin Martin
>
> --
> http://www.bitstorm.org/edwin/en/
> --
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
>



More information about the thelist mailing list