Results 1 to 4 of 4

Thread: luasocket ssl or https?

  1. #1
    Join Date
    Aug 2004
    Location
    Winnipeg, MB, CANADA
    Posts
    166

    Default luasocket ssl or https?

    Hi guys

    I've been trying to retrieve a https webpage and then parse the text. I tried the socket.http methods but obviously doesn't work since I need https. It doesn't appear as though girder has the "ssl.https" library available either.

    Is there any way to retrieve a webpage via https that I haven't been able to find!?

    Thanks!
    Scott
    Scott

  2. #2
    Join Date
    Jul 2007
    Location
    Netherlands
    Posts
    370

    Default

    I'm no expert on the matter, but maybe through curl? that is included, not?
    Using: Win7 MCE, Girder, xPL, RFXcom, HomeEasy

    http://www.thijsschreijer.nl

  3. #3
    Join Date
    Aug 2004
    Location
    Winnipeg, MB, CANADA
    Posts
    166

    Default

    Quote Originally Posted by Tieske8 View Post
    I'm no expert on the matter, but maybe through curl? that is included, not?
    Thanks Tieske8 - good idea. I think i even have a working curl prototype somewhere - i'll dig it up and try it.
    Scott

  4. #4
    Join Date
    Aug 2004
    Location
    Winnipeg, MB, CANADA
    Posts
    166

    Default

    Quote Originally Posted by gravy View Post
    Thanks Tieske8 - good idea. I think i even have a working curl prototype somewhere - i'll dig it up and try it.
    Worked perfect, thanks. I used two libraries to get the website, and then parse the webpage/

    for anyone searching:

    Code:
    local cURLextra = require('cURLextra')
    local json = require('json.json')
    local a,b,c,d,json_data = cURLextra.GetPost(HTTP_URL)  -- json_data contains the webpage data.
    local json_table = json.decode(json_data) -- decodes the json webpage into a table for easy parsing.
    Scott

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •