Send Contact form 7 data to remote server using .NET api

Problem

Error

When form is submitted than error show in plugin

Curl error: 7 Failed to connect to remote

Error detail

If i try to send form data to my api using jquery with simple input field for testing purpose still not get any response.

form action="https://remote.hhds.com.au:49172/API/api/addonlinebookings? 
 jsonData=@test" id="myformID"
    input type="text" name="fname"
    input type="submit" name="Send"
 /form



 $(document).ready(function($){
   $("form#myformID").on( "submit", function(event){
    event.preventDefault();
    event.stopPropagation();
    alert("test");

    // Get some values from elements on the page:
    var $form = $( this ),
        $data = {
            FirstName: $form.find( "input[name='fname']" ).val()
        },
        url = $form.attr( "action" );

    // Send the data using post
    var posting = $.post( url, $data );

    posting.done(function( data ) {
        //Do whatever you need with the returned data here.
        console.log(data);
        alert(data);
    });

   });
 });

Topic plugin-contact-form-7 microsoft plugins Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.