Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

HTTP POST from T-SQL

  • 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
Advertisement