• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Get csv vouchers using wget or curl.

Scheduled Pinned Locked Moved Captive Portal
6 Posts 4 Posters 5.1k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    Bansher
    last edited by Nov 10, 2011, 3:45 PM

    Hi,all. How i can get csv vouchers from captive portal using wget or curl or other shell commands? Thanks.
    My OS - Ubuntu
    Pfsense 2.0

    1 Reply Last reply Reply Quote 0
    • W
      wallabybob
      last edited by Nov 10, 2011, 8:44 PM

      Why not download them through a browser?

      1 Reply Last reply Reply Quote 0
      • B
        Bansher
        last edited by Nov 11, 2011, 2:15 AM

        Need automatic sending to internal portal of company

        1 Reply Last reply Reply Quote 0
        • W
          wallabybob
          last edited by Nov 11, 2011, 4:31 AM

          What will the "internal portal" do with the vouchers?

          My suspicion (I haven't checked the code to verify this) is that vouchers don't ever exist in CSV form in the captive portal and don't "pre exist". Hence they must be "generated" (made available for use) from web browser and there is a option to download a CSV representation of the vouchers.

          As best I know there is no mechanism for generating vouchers outside a browser session. Another mouse click or two at voucher generation time will download the CSV representation.

          1 Reply Last reply Reply Quote 0
          • T
            techboi
            last edited by Jan 30, 2012, 4:06 PM

            Bansher did you have any luck with this?

            I need to setup something where the internal POS system issues a voucher for every receipt printed (i.e. you make a purchase, you get an hour of free browsing). Generating CSVs and clicking through is all well and good, but that means that a front office staff guy needs access to the pfSense webGUI (which yes we can limit with a username/pw and restrict their access only to the voucher pages of the CP) but they'll also need a way to upload the values in the CSV to the POS, and also have to keep track of when the POS has run out of vouchers and needs a new roll uploaded.

            I mean there are ways around it by saying for an example, every day we will upload a roll of 1000 vouchers and have them expire at the end of the day so that every morning someone knows they need to upload a new roll, but it seems old fashioned and clunky. Why cant we integrate the two on the backend itself? The POS sends a request saying "i'm almost out of vouchers" and pfSense generates a new roll based on predefined settings (time, number of vouchers, etc) and send the roll back to the POS…

            Thats what I need to get working :-)

            1 Reply Last reply Reply Quote 0
            • J
              jpardobl
              last edited by Nov 28, 2012, 12:03 PM

              Try this: http://jpardobl.wordpress.com/2012/11/28/pfsense-voucher-rest-api/

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                [[user:consent.lead]]
                [[user:consent.not_received]]