Hello, Guyz.
I’m writing a driver and need it to send a HTTP POST QUERY to a web
server at NDIS IM level.
Can you please give me some links on the stuff that I can use for
that, maybe some examples etc.
Any information greatly welcomes.
Thanks alot.
I suggest that you consider creating a usermode service to interact with
your driver (via IOCTL, inverted call model, etc.) and issue the HTTP
request from usermode. You will find that to be significantly easier than
trying to do it from kernel mode.
Much has been said about the various ways a usermode service can enhance a
kernel mode driver. Search this NG for “Inverted Call” or look at the
various resources available on www.microsoft.com/whdc for starters.
Once you get your head around having a usermode service do some work for a
kernel mode driver, consider using the system supplied WinHTTP object to
manage the remaining details of sending a POST and processing the result (or
such things as proxy, redirect, etc.)
Good Luck,
Dave Cattley
Consulting Engineer
Systems Software Development
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of sdwdd
Sent: Monday, July 17, 2006 4:44 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] HTTP POST via NDIS IM
Hello, Guyz.
I’m writing a driver and need it to send a HTTP POST QUERY to a web server
at NDIS IM level.
Can you please give me some links on the stuff that I can use for that,
maybe some examples etc.
Any information greatly welcomes.
Thanks alot.
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
On 7/17/06 3:44 PM, “sdwdd” wrote:
> I’m writing a driver and need it to send a HTTP POST QUERY to a web
> server at NDIS IM level.
>
> Can you please give me some links on the stuff that I can use for
> that, maybe some examples etc.
Offhand, I’d say you have picked the wrong tool for the job.
NDIS IM drivers are designed to operate below the protocol stack (TCP/IP in
your case), and it’s hard to break that model. Use a usermode helper
application.
-sd
> I’m writing a driver and need it to send a HTTP POST QUERY to a web
server at NDIS IM level.
Writing a helper user app or service is a good idea.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com