Hi,
*Note*: I'm making this request because I was not able to find it on the
mailing lists, and I didn't find the file in the sources.
I would like to request that the file httprequest.idl from Wine (
https://gitlab.winehq.org/wine/wine/-/blob/master/include/httprequest.idl
) to be added to the project. The file is needed to use the
IWinHttpRequest (COM) interface to winhttp provided by Microsoft.
In the link ( https://pastebin.com/cr4CdWN5 ), there is a test code
written in C to verify that httprequest.idl from Wine is working fine.
Below, I wrote the steps to test the code.
*Prerequisites*:
1. Install MSYS2 on a x64 machine
2. Open a shell for the UCRT64 environment
3. Install gcc and widl
* pacman -S mingw-w64-ucrt-x86_64-gcc mingw-w64-ucrt-x86_64-tools-git
*Steps to test the code*:
1. Paste the code from
https://gitlab.winehq.org/wine/wine/-/blob/master/include/httprequest.idl
to a file named httprequest.idl
2. Paste the code from https://pastebin.com/cr4CdWN5 to a file named main.c
3. Use widl on httprequest.idl to generate the header httprequest.h,
and the source file httprequest_i.c:
* widl httprequest.idl
4. Compile the files:
* gcc -o app.exe main.c httprequest_i.c -lole32 -loleaut32 -luuid
-lshell32
5. Run the file from the command line (or shell) to perform HTTP
request to the Microsoft website:
* ./app.exe
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public