in reply to Re^3: CGI and web services
in thread CGI and web services

Your technique worked great! I guess there's a param called POSTDATA that contains what I need. I've written a client and a server that seem to be talking to each other.

Now I need to perform basic HTTP authentication. Any pointers there?

dan shahin

Replies are listed 'Best First'.
Re^5: CGI and web services
by spatterson (Pilgrim) on Jan 30, 2007 at 13:23 UTC
    So you need to fetch a URL that uses a username & password? LWP::UserAgent and WWW::Mechanize can both handle this.

    just another cpan module author
Re^5: CGI and web services
by EvanK (Chaplain) on Jan 30, 2007 at 17:11 UTC
    Now I need to perform basic HTTP authentication. Any pointers there?
    That depends, what is the source of the usernames/passwords? Some kind of local database you control, or do you authenticate them through google?

    Addendum: for those monks (ie: me) who dont usually care to go looking for proprietary API docs, it would help to include a link to them :)

    __________
    The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
    - Terry Pratchett

      it's my own username and password sent back to me from google. I'm trying to access the Authorization header but it seems to have been stripped by the time it gets to my script. Any tips?

      dan shahin

        In that case, you could probably just let Apache handle the authentication by using an htaccess file in the directory containing your script. I believe that should work, unless I'm missing something.

        __________
        The trouble with having an open mind, of course, is that people will insist on coming along and trying to put things in it.
        - Terry Pratchett