Giter VIP home page Giter VIP logo

cf-curl's People

Contributors

fridus avatar harrymuc avatar loicmahieu avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cf-curl's Issues

Variable RES is undefined (test.cfm)

Just downloaded the project and attempted to run the test.cfm file but the tests fail:

Error:
Variable RES is undefined.

Environment:
Apple MacOS
Adobe ColdFusion 2016 (2016.0.10.314028)
CURL 7.64.1 (Brew Install)

When I dump 'cURL.exec()' the object comes back as undefined.

Support for User Agent (-A)

Many WAFs are configured to block access if the username is empty or if it contains "CURL".

Please add support for specifying a custom user-agent as well as a default user agent.

I've added a default value to the public init function:

variables.useragent = "cf-curl";

and then added this logic to to the private _commandArg function.

if(len(trim(variables.useragent))){
    c.add('-A "#variables.useragent#"');
}

Slower then cfhttp

See
https://trycf.com/gist/f303dd5bf0a815653b1cfbe04175c5c9/lucee5?theme=monokai
3-4 times slower the cfhttp?

HTTP Call
count 1: 655 milliseconds
count 2: 625 milliseconds
count 3: 649 milliseconds
count 4: 614 milliseconds
count 5: 716 milliseconds
count 6: 636 milliseconds
count 7: 666 milliseconds
count 8: 792 milliseconds
count 9: 614 milliseconds
count 10: 686 milliseconds

CURL Call
count 1: 2707 milliseconds
count 2: 2677 milliseconds
count 3: 2641 milliseconds
count 4: 2626 milliseconds
count 5: 2612 milliseconds
count 6: 2579 milliseconds
count 7: 2586 milliseconds
count 8: 2621 milliseconds
count 9: 2581 milliseconds
count 10: 2621 milliseconds

Timeout issue using LUCEE

A bit of a weird one here.

I am using lucee and have discovered that the implementation of thread has an intermittent problem.
It's a known issue, but was wondering if the cfc could have an option to not use thread when it comes to the _exec function.
Or, can someone help me rewrite the function without using thread?

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.