1. eunet mods
- Posted by Kat <KAT12 at coosahs.?e?> May 01, 2008
- 672 views
I am adding an outgoing header hander to eunet. I may not finish tonite, but i am close to it now. It has some generic defaults, a way to modify them, and of course you can list them. It builds from the record to the http format and sends them. Kat
2. Re: eunet mods
- Posted by Kat <KAT12 at co?sahs.ne?> May 01, 2008
- 649 views
I have mod'd my copy of eunet to get this url, http://en.wikipedia.org/wiki/USNS_General_Harry_Taylor_(T-AP-145) and http://en.wikipedia.org/wiki/USNS%5FGeneral%5FHarry%5FTaylor%5F%28T%2DAP%2D145%29 which eunet could not do this morning. I added several functions, using overly long names: sequence sendheader = {} -- as opposed to receiveheader defaultsetsendheader = set a default header setsendheaderline = sets a header line you ask for by name getsendheaderline = returns a header line you ask for by name formatsendheader = makes the header record presentable to eunet_send() urlencoding = not done yet -- convert non-alphanumeric to %hexhex pagedeflate = not done yet, un-gzip(?) -- any takers? I didn't do POST yet, gnite! All subject to change by Michael Sabal, if he's here? How to get this file out to you, i don't know yet. Kat
3. Re: eunet mods
- Posted by Michael J. Sabal <m_sabal at ya?oo.co?> May 01, 2008
- 663 views
Kat wrote: > > I have mod'd my copy of eunet to get this url, > > All subject to change by Michael Sabal, if he's here? How to get this file out > to you, i don't know yet. > > Kat Wow, that's awesome! It probably would have taken me a couple weeks to get everything done and tested, squeezing it in between the work I get paid for :). If you have, or were able to sign up for a SourceForge account, and had SVN installed, I could add you to the project so you could commit code directly. Otherwise, you could email me your modded version, or submit the modded .e to recent user contributions. My addy is m underscore sabal ta yahoo tod com. Thanks. Michael Sabal
4. eunet mods
- Posted by Kat <KAT12 at coosahs.n??> May 08, 2008
- 629 views
Eunet now has (not released yet): data = eunet_get_recvheader("set-cookie") puts(1,data[2]&"\n") -- puts the cookie value data = eunet_get_recvheader(3) puts(1,data[1]&" "&data[2]&"\n") -- in this case, puts the headername and server software name What else does it need (keeping in mind it's a web interface, not a webpage manager, not an irc bot, and not a firewall)? Kat
5. Re: eunet mods
- Posted by Jeremy Cowgar <jeremy at ?ow?ar.com> May 08, 2008
- 630 views
Kat wrote: > > What else does it need (keeping in mind it's a web interface, not a webpage > manager, not an irc bot, and not a firewall)? > Great! One problem I am having with it is eu with the eunet_recv(). If I pass MSG_DONTWAIT to it, then it returns right away and with no data received, in Linux, it returns: {11, ""} then when data is received, it returns "Data". So, in my check on Linux, I have to check result[1] != 11 (we have data). Now on windows, it returns a different code. I think it was 10025, but I am not certain. So, on windows I have to perform a different check. It should probably define it's own error codes and map in the cross-platform functions, to eunet's errors so programmers can simply: result[1] = NO_DATA and it will work on Windows or Linux/FreeBSD. i.e. If it's cross platform, it should work on either platform w/no changes or special handling on either platform. -- Jeremy Cowgar http://jeremy.cowgar.com