Curl with jquery

Asked

Viewed 83 times

0

I am trying to make a request for a page just like I do when I use Curl in php but I want to via jquery but it ta q n I have permission, I wanted to know how to fix it.

my code until the moment:

  <script>
        function regex_correct() {
            $.ajax({
                 url: "https://homebeta1.000webhostapp.com/ts/regex/1.php?regex="+document.getElementById('original').value,
                processData: false,
                success: function (data) {
                    alert(data);
                    //process the JSON data etc
                }
            })

        }
    </script>
  • has some error in the console?

  • vala q i n have website autorisaçã

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.