Posting to a url

Posted on 2007-10-16
Last Modified: 2013-12-25

We have a script which emails various details to our domain registration provider.  The email is basically a template which they then process.

Our domain registration provider has now switched to an API system, and no longer accept mail posts.  The API variables are sent via a URL, as follows;


I would like to change the existing system so that it posts the data to the URL (When it gets to the point where the email template is sent) instead of sending the mail.

Is it possible to send url posts through scripting.  I cannot use a form.

I found this link which looks interesting;
Question by:mhouldridge
    LVL 51

    Accepted Solution

    > Is it possible to send url posts through scripting.
    assuming that you mean a GET request when you talk about "posting":

    wget 'http://domainprovider/process.asp?domain=variable1&registrationperiod=1year'
    LVL 82

    Expert Comment

    If I am understanding you correctly, you are trying to emulate the form submission capabilities of a browser via a scripting language.
    Refer to the followoing:
    Script: Perl (UNIX/LINUX/Windows Platforms)
    Description: Sending username and password to some login form

    Script: VBScript (IIS ASP)
    Comment: the "DataToSend" variable should contain a string with the following format:


    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
    In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now