1 Attachment(s)
HTTP Wrapper (Winsock HTTP Wrapper)
This is a wonderful working wrapper for easy sending HTTP Requests. It can support POST, GET, HEADER, and handle all sent cookie data. It parses and reuses cookies once it get's them. You can also retrieve and set cookies. Very simple structure, example:
Code:
Wrapper1.GetWrapper(Address, Refferer)
Code:
Wrapper1.PostWrapper(Address, Data, Refferer)
It's not like an OCX or control so you can easily check out the source if your interested. To use simply add the module and user control to your project. Credits goto Glurak.
Note that the main use of this is retrieving HTML and interacting with the web. Example: I used it to interact with my website when creating a registration for my website. It uses Winsock, so it's preety fast. Any questions, please feel free to ask. Comments welcomed as well.
Re: HTTP Wrapper (Winsock HTTP Wrapper)
hey, what do I do when it says object moved?
and can you explain how the cookiekey_get and cookievalue_get work?
Re: HTTP Wrapper (Winsock HTTP Wrapper)
Thank u for sharing this code . I looked at it but i do now how to use it!could u show me a code that uses this modeul to send data to php page and that php insert the data passed to mysql database. Thanks
Re: HTTP Wrapper (Winsock HTTP Wrapper)
Thanks , this is what i've been looking for..im going to try it noW!
Re: HTTP Wrapper (Winsock HTTP Wrapper)
Too bad does not have any considerate description :(
I was hoping to get it work like the DElphi idhttp :(
Re: HTTP Wrapper (Winsock HTTP Wrapper)
well, no matter, it does work although I really don't see the need for it since it isn't that difficult to just do the same thing using your own Winsock.
Re: HTTP Wrapper (Winsock HTTP Wrapper)
Quote:
Originally Posted by jmsrickland
well, no matter, it does work although I really don't see the need for it since it isn't that difficult to just do the same thing using your own Winsock.
i use my own Winsock as its much faster!
use Winsock with index's and then its fast!!!
Re: HTTP Wrapper (Winsock HTTP Wrapper)
good library but it still doesn't solve my Inet problem..
with Inet.. I can go to websites which require me to be logged in.. and it works.. but with this control it doesn't work.. I have no idea how to setup the cookies which is probably what keeps my logged in
only problem with Inet.. when I do OpenURL() it uses Microsoft URL as User Agent thats all I want to fix.