Is it possible to send headers with http requests?
I would like to send:
"Origin"
"Referer"
Is there some way to do that?
Thanks
Sending headers via http?
Sending headers via http?
WARNING: I dont know what I am doing! I just put stuff here and there and sometimes like magic it works. So please improve on my code and post your changes so I can learn more. TIA
Re: Sending headers via http?
Yes, easily. Look at the webserver code in your PB examples directory for inspiration.
PB 5.73 on Windows 10 & OS X High Sierra
Re: Sending headers via http?
Looks like I maybe dont have webserver code in my examples directory. Can you please point me a link or post the code for me.
Thanks
Thanks
kpeters58 wrote:Yes, easily. Look at the webserver code in your PB examples directory for inspiration.
WARNING: I dont know what I am doing! I just put stuff here and there and sometimes like magic it works. So please improve on my code and post your changes so I can learn more. TIA
Re: Sending headers via http?
It's under Examples/Sources - Advanced/Atomic Web Server in the PureBasic directory.
Re: Sending headers via http?
Strange I dont see it in the linux latest releases.
WARNING: I dont know what I am doing! I just put stuff here and there and sometimes like magic it works. So please improve on my code and post your changes so I can learn more. TIA
Re: Sending headers via http?
You're right...that's weird. I would post it here, but I'm not sure if that's allowed.
Anyway, I found an example on PureArea.net in the CodeArchive: http://purearea.net/pb/CodeArchiv/Inter ... bserver.pb
Anyway, I found an example on PureArea.net in the CodeArchive: http://purearea.net/pb/CodeArchiv/Inter ... bserver.pb