简体   繁体   中英

How to get all ServerVariables in an ISAPI extension

I have an old ISAPI extension that needs to pass forward server variables to another application. Currently the application pushes a number of fixed values explicitly to the backend application, but it would be much nicer to actually return all of them.

I know about ecb->GetServerVariable() which works just fine for individual server vars, but is there some way to iterate over all server variables somehow or grab them as a complete buffer?

Call GetServerVariable with "ALL_HTTP" or "ALL_RAW"? Of course, then you'd have to handle pulling apart the header yourself.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM