"xlvba send http post" Code Answer's

You're definitely familiar with the best coding language VBA that developers use to develop their projects and they get all their queries like "xlvba send http post" answered properly. Developers are finding an appropriate answer about xlvba send http post related to the VBA coding language. By visiting this online portal developers get answers concerning VBA codes question like xlvba send http post. Enter your desired code related query in the search bar and get every piece of information about VBA code related question on xlvba send http post. 

xlvba send http post

By Excel HeroExcel Hero on Mar 30, 2020
'VBA function to send HTTP POST to a server:

Function httpPost$(url$, msg$)
    With CreateObject("WinHttp.WinHttpRequest.5.1")
        .Open "POST", url, False
        .setRequestHeader "User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
        .setRequestHeader "Content-type", "application/x-www-form-urlencoded"
        '.setRequestHeader "secret-pass-key", "your-key"    <--if needed
        .send msg
        httpPost = .responseText
    End With
End Function

'-------------------------------------------------------------------------------------------

'Example usage:
response = httpPost(url, msg)

'-------------------------------------------------------------------------------------------

'Note: This same setup can be used for an HTTP PUT. Just change "POST" to "PUT".
'
'
'

Source: academy.excelhero.com

Add Comment

19

All those coders who are working on the VBA based application and are stuck on xlvba send http post can get a collection of related answers to their query. Programmers need to enter their query on xlvba send http post related to VBA code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about xlvba send http post for the programmers working on VBA code while coding their module. Coders are also allowed to rectify already present answers of xlvba send http post while working on the VBA language code. Developers can add up suggestions if they deem fit any other answer relating to "xlvba send http post". Visit this developer's friendly online web community, CodeProZone, and get your queries like xlvba send http post resolved professionally and stay updated to the latest VBA updates. 

VBA answers related to "xlvba send http post"

View All VBA queries

VBA queries related to "xlvba send http post"

Browse Other Code Languages

CodeProZone