Giter Site home page Giter Site logo

red-tools's Introduction

IMPORTANT NOTICE

All HTTP and HTML related stuff has been moved to the CASTR repository. Go there for updated and fixed version of

  • SEND-REQUEST
  • XML/HTML parser
  • The HUB web server
  • codepages handling functions

and other amazing stuff. Versions here will be deleted eventually.

red-tools

Various Red tools, encoders/decoders and APIs

Encoders/decoders

CSV

Load and save CSV files.

JSON

Load and save JSON files.

GraphQL

Load and save GraphQL files.

APIs

Github-v3

Github REST API.

Github-v4

Github GraphQL API.

Tools

HTTP-TOOLS

Various client and server side HTTP tools. HTTP headers parsing for use with CGI and other stuff.

HTML-TOOLS

Various tools for working with HTML files that simplfy parsing and data retrieval.

PAF

PAF (parse files) is grep-like tool for Red that uses parse rules instead of regex.

UFCS

Uniform Function Call Syntax implementation for Red.

NSOURCE

Show source for native! functions.

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!

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

Testing issue

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

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.