Skip to content

Simbol "?" in http request #143

Discussion options

You must be logged in to vote

The problem is not using the query builder when building your query, I will work on omitting ? when there are no parameters, but the correct way to make a request is as follows:

std.http.get(envs.PRIMETIME_URL)
   :add_param('app', 'fellow')
   :add_param('version', '0.6.0')
   :success(function()
    print(std.http.body)
    local response = std.json.decode(std.http.body)
    if response and response[workspace] then
        print('2xx callback')
        data._listtransmission = response[workspace]
    end)
    :run()

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@joaorovera
Comment options

joaorovera Feb 12, 2025
Collaborator Author

@RodrigoDornelles
Comment options

@joaorovera
Comment options

joaorovera Feb 12, 2025
Collaborator Author

Answer selected by RodrigoDornelles
Comment options

joaorovera
Feb 12, 2025
Collaborator Author

You must be logged in to vote
1 reply
@RodrigoDornelles
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #142 on February 11, 2025 17:07.