Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

MSINET.OCX   POST  method

Posted on 2001-07-20
4
Medium Priority
?
637 Views
Last Modified: 2012-05-04
I'm trying to post data to a website. The guy who developed the website claimed I could easily post data from an Access application. Well, I tried and it doesn't seem to be working.

I found an example on how to use the MsInet.OCX on:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/office97/xhtml/web/015.asp

It states that you need to use something like:

Dim strURL As String, strFormData As String

strURL = "//www.yippee.com/cgi-bin/find.exe"
strFormData = "find=Hangzhou"
Inet1.Execute strURL, "POST", strFormData

When I try this I get no data posted. I modified the InetSamp database. I was a bit worried when it didn't have a POST example (only a GET example). But the calls for POST and GET are almost identical so I just added the post data and changed "GET" to "POST". That should work according to the example. I just don't get any data posted.

I have had some problems before with the OCX so I searched for an example using the DLL. And there I found the WinInet App written in VB using the DLL. And that one does work. But unfortunately it's quite inreadable code (to me)

I would like to use the simple OCX version of it all. Did someone get this to work? And if so, how ;)
0
Comment
Question by:patrickl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 6

Expert Comment

by:xSinbad
ID: 6307231
Here is another tool you could use;

http://www.catalyst.com/download/index.html
0
 
LVL 5

Author Comment

by:patrickl
ID: 6326973
OK, all you (I) need to do is set the form headers.

So a working example would be:

strURL = "//www.yippee.com/cgi-bin/find.exe"
strFormData = "find=Hangzhou"
Inet1.Execute strURL, "POST", strFormData, "Content-Type: application/x-www-form-urlencoded"



0
 
LVL 2

Accepted Solution

by:
Lunchy earned 0 total points
ID: 6327994
Refunding points to add to PAQ
0
 
LVL 2

Expert Comment

by:Lunchy
ID: 6328006
OK that's done.  By the way, that question would have gotten answered in half an hour or less in the VB section.
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

618 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