Ian Clarke <I.Clarke at dynamicblue.com> wrote: > I have been working on several more inform.php improvements. > > Firstly, inform.php can now take an extra CGI parameter called "proto" > which can be an arbitrary string, if it doesn't get this parameter it > assumes a value of "1.2" for proto (the protocolVersion in release > 0.2). If it does get this parameter it will only list nodes added with > the same protocol number. > > Obviously Node.java needs to be changed to use this, but I haven't got > around to it just yet (I need to find out how to pass multiple CGI > params in a POST (ie. is there a CR between them?)).
The body of a POST form is encoded in the same way as parameters in a GET (i.e. the stuff after "?" in a URL), so you should construct a request that looks like this: POST /inform.php HTTP/1.1^M Host: freenet.sourceforge.net^M Content-type: application/x-www-form-urlencoded^M Content-length: 41^M ^M param1=value1¶m2=value2¶m3=value3<END> (and hopefully get back: HTTP/1.1 200 OK) theo _______________________________________________ Freenet-dev mailing list Freenet-dev at lists.sourceforge.net http://lists.sourceforge.net/mailman/listinfo/freenet-dev
