[drakma-devel] redirect in http-request

Xiangjun Wu netawater at gmail.com
Fri Nov 13 05:23:43 UTC 2009


OK, I have made a patch, Please check it.

Besides, launchpad.net need a new http method called patch, I also provide a
patch, is it OK?

Best regards,
Plato Wu

片云天共远永夜月同孤


On Thu, Nov 12, 2009 at 7:08 PM, Edi Weitz <edi at agharta.de> wrote:

> I just made a very similar change two days ago:
>
>  http://bknr.net/trac/changeset/4466/trunk/thirdparty/drakma
>
> Could you provide a patch along the lines of what you think is needed?
>
> See also here:
>
>  http://weitz.de/patches.html
>
> Thanks,
> Edi.
>
> On Thu, Nov 12, 2009 at 3:05 AM, Xiangjun Wu <netawater at gmail.com> wrote:
> > Hi, All,
> >
> > I'm building a oauth library with drakma, oauth specification need
> > every request is signed with its token and token secret in
> > additional-headers, but it also need a unique timestamp and nonce(a
> random
> > string).
> >
> > It is OK when there is not redirect, but http-request will use the same
> > additional-headers in the redirect request, so oauth server throw an
> error:
> > "Invalid nonce/timestamp: This nonce has been used ..."
> >
> > I think there are two solutions, one is there is a option that
> > http-request do not automatically follow redirect, the other is
> > http-reqeust evaluate the additional-headers again when redirecting.
> >
> > Is it acceptable, thank you in advance.
> >
> >
> > Plato Wu
> > 片云天共远永夜月同孤
> >
> > _______________________________________________
> > drakma-devel mailing list
> > drakma-devel at common-lisp.net
> > http://common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel
> >
> >
>
> _______________________________________________
> drakma-devel mailing list
> drakma-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/drakma-devel/attachments/20091113/e9c136f8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: additional-headers.patch
Type: application/octet-stream
Size: 2242 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/drakma-devel/attachments/20091113/e9c136f8/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: method.patch
Type: application/octet-stream
Size: 511 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/drakma-devel/attachments/20091113/e9c136f8/attachment-0001.obj>


More information about the Drakma-devel mailing list