Upload a file to a website programmatically?

后端 未结 1 1495
[愿得一人]
[愿得一人] 2020-12-20 03:28

I am using Lazarus I have an app with webbrowser component on it that logs into a website loads a page as below (see html code below), and fills in different inputs. The las

相关标签:
1条回答
  • 2020-12-20 03:49

    This is a known problem, and there is a solution, but you're going to have to convert it from С# to Delphi.

    Another possible solution is to upload the file using URL Moniker APIs. The upload will then happen on the same session the WebBrowser control is already using. There is an MSKB article:

    How To Handle POST Requests in a Pluggable Protocol Handler

    The POSTMON.EXE sample linked to the article has disappeared from Microsoft website, but still can be found here.

    0 讨论(0)
提交回复
热议问题