用于上传数据的本机 DLL
我需要一个允许将数据发布到特定网页的 Windows DLL。一个很好的例子是 ISX,它在下载方面非常出色,但不幸的是它没有不支持POST请求。
这将用于在 VB6 中构建可移植应用程序。由于winsock.ocx 并不总是可用并且需要注册,因此我正在寻找免注册的本机替代方案。
有没有类似的DLL可用?
需要一些简单明了的东西,比如 PostData (url, data)
。
I need a Windows DLL that allows posting data to specific webpage. A good example is ISX, which is excellent in downloading, but unfortunately doesn't support POST request.
This will be used to build a portable application in VB6. Because winsock.ocx is not always available and requires registration, I'm looking for a registration-free native alternative.
Are there any similar DLLs available?
Need something simple and straightforward, like PostData (url, data)
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您始终可以构建 libcurl 或 neon 作为 DLL:您需要执行 VB6 声明,但没有理由不能使用它们,因为您无法将 Winsock.ocx 打包到你的安装程序。
编辑:请参阅http://curl.haxx.se/libcurl/vb/。不确定它是最新/最新的,但这可能是一个不错的开始。
You can always build libcurl or neon as a DLL: you'll need to do the VB6 declarations, but there's no reason why you wouldnt be able to work them in you can't package winsock.ocx into your installer.
EDIT: see http://curl.haxx.se/libcurl/vb/. Not sure how current/recent it is, but it would probably be a decent start.
有一个名为“MSXML2.XMLHTTP”的普遍存在的 COM 对象,它可以执行 GET 和 POST 请求并返回结果。您只需编写一个包装函数即可将其简化为 (url,data)
看一下 这个问题
作为旁注,如果您发现许多客户端级代理/局域网/安全设置搞乱了您的连接,您可以尝试备用“MSXML2.ServerXMLHTTP”将以更原始的方式进行连接。
There is a ubiquitous COM object called "MSXML2.XMLHTTP" that can do GET and POST requests and return you the results. You would just have to write a wrapper function to simplify it down to (url,data)
Have a look at this question
As a side note, if you find that lots of client-level proxy/lan/security settings are messing up your connection you can try the alternate "MSXML2.ServerXMLHTTP" which will connect in a more raw fashion.