Code Monkey home page Code Monkey logo

red-tools's Introduction

Rebolek's corner of the GitHub ๐Ÿ‘‹

All things Red and Rebol. If it's a networking protocol or a file format, I'll write a parser for it and no one can stop me!

When using my software, you must listen to my music. Seriously, that are the terms of the licence. I am on Bandcamp and Soundcloud.

Rebolek's github stats

red-tools's People

Contributors

rebolek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

red-tools's Issues

Need example of Bearer auth

I am trying to do Bearer auth.

I use next request:

answer: send-request/auth http://localhost:8529/_db/ztest/_api/collection/protocols 'POST 'Bearer "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXQiOjEuNTkzMTcyOTU4NTg4MzQ3OGUrNiwiZXhwIjoxNTk1NzY0OTU4LCJpc3MiOiJhcmFuZ29kYiIsInByZWZlcnJlZF91c2VybmFtZSI6InVzZXIifQ==.a9L7AGDqjjZv1OdFYmT_uFUGLbX_NBva00UoUQXhSns="
*** Script Error: invalid argument: none
*** Where: write
*** Stack: send-request  

Also there is problem. How to add data (when it will work) to it? I will need mix \auth and \data but I do not know how to do it from Red.

Question about send-request

I am trying to work with ArangoDB with send-request. I am trying to insert data in collection with follow code:

>> probe send-request/data http://localhost:8529/_db/ztest/_api/document?collection=protocols 'POST object [a:1]
#(
    code: 202
    headers: #(
        Connection: "Keep-Alive"
        Content-Length: "59"
        Content-Type: "application/json; charset=utf-8"
        ETag: {"_aivbbJi---"}
        Location: "/_db/ztest/_api/document/protocols/2734"
        Server: "ArangoDB"
        X-Content-Type-Options: "nosniff"
    )
    raw: {{"_id":"protocols/2734","_key":"2734","_rev":"_aivbbJi---"}}
    data: #(
        _id: "protocols/2734"
        _key: "2734"
        _rev: "_aivbbJi---"
    )
)
== #(
    code: 202
    headers: #(
        Connection: "Keep-Alive"
        Content-Length: "59"
        Content-Type...
>> 

At web interface it's show that I insert object without data: {}
What I am doing wrong?

upd: 'POST to-json object [a: 1] works!

Testing issue

This issue will be always open, it is here for testing the API.

issue with http-tools with latest Red

Hi! I tried to compile my project with latest build of red from 12.09.2021 and it on http request it begin to return weird http code.
I tried to small code snippet and got an error:

>>  send-request/data to-url "http://10.201.1.35:5001/" 'POST []
*** Script Error: value out of range: 1
*** Where: set-path
*** Stack: send-request

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.