[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Http-emacs-dev] Re: simple wiki
From: |
D. Goel |
Subject: |
[Http-emacs-dev] Re: simple wiki |
Date: |
Mon, 22 Nov 2004 09:59:23 -0500 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.2 (gnu/linux) |
> Well just some ideas... :) I'm willing to resume the work but
> it's a bit boring to do it alone :)
I don't understand http get/post well at all to know any more, so I
would surely be very glad if you get any ideas... :)
The current http-post (try the test wiki at gnufans.net, for which i
sent the parameters in the last mail[1]) seems to generate all the
headers correctly, separated by \r\n, afaict. (as you can see from
its verbose option or edebug it..)
Somehow, however, it posts only to non-htpasswd wikis. The funny
thing is that when posting to htpasswd wikis, the authorization header
*is* used -- (if you skip it, it gives the "auth. denied" page..),
however, the content gets blanked..
OTOH, http-get seems to work just fine with both types of wikis..
PS: Again, working with "normal" wikis, like emacswiki remains all
good..
[1] i.e., try M-x swc-test-browse (followed by TestWiki page)
where:
(defun swc-test-browse ()
(interactive)
(require 'simple-wiki-completion)
(swc-browse "test"))
and
(add-to-list
'swd-wiki-defs-list
`(
"test"
"http://gnufans.net/test.pl"
"?action=browse&raw=2&id="
"?action=index&raw=1"
"?action=rc&raw=1"
1.1
swd-usemod-wiki-save
iso-8859-1
(("Authorization" .
,(concat
"Basic "
(base64-encode-string "test:test") )))
))
It fetches the page just right, but posts a blank..
PS: Pierre, thanks for the "live" help on irc earlier.