flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Windows > How to pass custom header via URLDownloadToFile Function

Author
Thread Post new topic Reply to topic
kamalani66



Joined: 26 Jun 2017
Posts: 2

How to pass custom header via URLDownloadToFile Function

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

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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2017, Tomasz Grysztar.