Problem Web Query/QueryTables using POST with VBA (Mac 2004)

JT-VBA

New Member
Joined
Jan 8, 2007
Messages
1
I've had no problem creating web queries via VBA using Mac Excel 2004, if the HTTP method is GET. However, when I try to retrieve information using POST it appears that the request is still using GET (as observed in an HTTP proxy.)

Has anyone else been able to get HTTP POST requests to work using VBA on the Mac with 2004? (I am running the most recent update.)

Any/all help would be appreciated.

The code I am using is:

Code:
Public Sub posttest()
    Dim QT As QueryTable
    Dim connstr As String
    
    connstr = "URL;http://127.0.0.1:8080/cgi-bin/posttest.py"
    Set QT = ActiveSheet.QueryTables.Add( _
            Connection:=connstr, _
            Destination:=Range("B1"))
    QT.PostText = "quote1=sbux"
    QT.Refresh
End Sub
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,214,918
Messages
6,122,252
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top