We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

How to make the Local server support POST requests?”

Home Forums General Questions How to make the Local server support POST requests?”

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #67084
    aqiang
    Customer

    “The ‘load data’ puzzle supports GET requests to the local server, while ‘send data’ does not support POST requests to the local server. Without creating a custom server, can the current server be made to support POST requests? Any advice is appreciated. Thank you.”

    Attachments:
    You must be logged in to view attached files.
    #67105

    Hi,

    the local server is mostly intended to run the App Manager, not to handle requests from an application. On the other hand, the send data puzzle can be used precisely for that, for example, coupled with the WordPress plugin.

    Chief 3D Verger | LinkedIn | Twitter

    #67117
    Crunch
    Customer

    Yes you can do it all locally. I am setup with Laragon (I highly recommended getting Laragon for your local server…. its a dream compared to xxamp.

    I got things configured so I run Laragon at the same time out of the same dir as Verge and its pretty slick. I can share my setup with you but won’t have time to get this until next week.

    Sorry to tease. But i know for sure I got it all working with the standard send data puzzle.

    #67122
    Crunch
    Customer

    Ok, here is my sweet setup. When a job calls for server stuff, I run Laragon along side Verge and have the default directory pointed to same directory as my verge apps. The sub folder I put all my php server stuff is labeled “W”… which of course shows up in Verge manager as an app but we all know its really not an app.

    Create a php file to receive the output of your post puzzle, easy cheezy

    Attachments:
    You must be logged in to view attached files.
    #67605
    bigmike814
    Customer

    that’s what she said :yahoo:

    #67616
    aqiang
    Customer

    Yuri,Crunch,Thank you for your responses. It’s possible that my previous description wasn’t accurate, which led to answers that didn’t address my actual issue. My idea was to create a custom control panel similar to dat.gui, and I wanted a ‘Save’ button to store the panel’s data in a local JSON file. However, your suggestions have opened up new possibilities, and I eventually found the simplest solution to be saving the data to the browser’s localStorage. Thanks!

    • This reply was modified 6 months, 2 weeks ago by aqiang.
    Attachments:
    You must be logged in to view attached files.
    #68627
    kdv
    Participant

    the send data puzzle can be used precisely for that, for example, coupled with the WordPress plugin.

    Is this instruction about uploading still actual?
    https://www.soft8soft.com/docs/manual/en/introduction/Wordpress-Plugin.html#uploading_files

    Can’t make it work on on a local server (Laragon) with WordPress installed :scratch:

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #69880
    kdv
    Participant

    There is an issue with uploading:

    https://HOSTNAME/wp-json/verge3d/v1/upload_file/

    https://HOSTNAME/wp-json/verge3d/v1/get_file/ID

    These links are not working when the Permalinks option (in WordPress settings) is set to Plain. But they are working with Post name.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.