flat assembler
Message board for the users of flat assembler.

Index > Windows > How to pass custom header via URLDownloadToFile Function

Author
Thread Post new topic Reply to topic
kamalani66



Joined: 26 Jun 2017
Posts: 2
kamalani66 26 Jun 2017, 09:03
Hello,

I need example on how to pass custom header in URLDownloadToFile function

So far I know I should use IBindStatusCallback interface as someone on other forum posted:

Quote:
Write a COM object implementing IBindStatusCallback, IServiceProvider
and IHttpNegotiate. Have IServiceProvider::QueryService return
IHttpNegotiate when queried for it. Pass IBindStatusCallback off this
object as the last parameter to URLDownloadToFile. Provide your headers
in IHttpNegotiate::BeginningTransaction.


This was an answer for someone who was looking on how to change HTTP-Referer.

What I need to do is pass custom variable in header like variable_xyz=123

But I don't know how to implement it in FASM, help much appreciated!
Post 26 Jun 2017, 09:03
View user's profile Send private message Reply with quote
kamalani66



Joined: 26 Jun 2017
Posts: 2
kamalani66 27 Jun 2017, 11:31
I have found this helpful post on COM objects:
https://board.flatassembler.net/topic.php?p=94744

But still figuring it out, if someone know how to do this please post Wink
Post 27 Jun 2017, 11:31
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.