Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

HTTP POST from T-SQL

Options
  • 14-03-2007 11:08am
    #1
    Closed Accounts Posts: 216 ✭✭


    Hey,

    I have setup a stored procedure to send a HTTP POST to a URL using:

    EXEC @iHr = sp_oacreate 'MSXML2.ServerXMLHTTP.3.0', @iObject OUTPUT
    EXEC @iHr = sp_oamethod @iObject, 'open', null, 'POST', @sURL
    EXEC @iHr = sp_oamethod @iObject, 'send', null
    EXEC @iHr = sp_oagetproperty @iObject, 'responseText', @sResponseText OUTPUT

    Does anyone know how I would specify Form parameters so I could mimic a full HTTP POST?

    Thanks
    Gogul


Comments

Advertisement