[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Problem with http-client in chicken 4.2.0
From: |
F. Wittenberger |
Subject: |
Re: [Chicken-users] Problem with http-client in chicken 4.2.0 |
Date: |
Sun, 01 Nov 2009 15:36:42 +0100 |
I've got no idea what's going on here at all, but
to me the second request looks wrong in any case.
Shouldn't those parameter field separators be "&" and never ";" ???
Am Sonntag, den 01.11.2009, 12:53 +0100 schrieb Colin Fleming:
> Using netcat and stunnel to see what's going on, it's very strange, I
> can make the exact same request with http-client and curl, curl works
> but http-client returns a 403:
>
> GET
> /accounts/ClientLogin?Email=<email>&Passwd=<passwd>&source=Google-cURL-Example&service=reader
> HTTP/1.1
> User-Agent: curl/7.19.6 (i386-apple-darwin10.0.0) libcurl/7.19.6
> OpenSSL/0.9.8k zlib/1.2.3
> Host: localhost:8889
> Accept: */*
>
> GET
> /accounts/ClientLogin?Email=<email>;Passwd=<passwd>;source=Google-cURL-Example;service=reader
^ ^
> HTTP/1.1
> Accept: */*
> User-Agent: curl/7.19.6 (i386-apple-darwin10.0.0)
> Host: localhost:8889
>
> The first works, the second gives me a BadAuthentication error. That's
> http-client pretending to be curl. My call looks like the following:
>
> (call-with-input-request
> (make-request method: 'GET
> uri: (uri-reference
> "http://localhost:8889/accounts/ClientLogin?Email=<email>&Passwd=<passwd>&source=Google-cURL-Example&service=reader")
>
> headers: (headers `((accept . (*/*)))))
> #f
> port->string)
>
> The request is to localhost:8889 for the netcat/stunnel proxy. Any
> ideas why this might fail?
>
> Cheers,
> Colin
>
>
> 2009/11/1 Colin Fleming <address@hidden>
> I assume so - it doesn't explicitly say so in the doc, but the
> previous version did and this version requires openssl. I'm
> assuming it must be something that's changed in the way the
> request is constructed - the user agent, maybe?
>
> Cheers,
> Colin
>
> 2009/11/1 John Cowan <address@hidden>
>
>
> Colin Fleming scripsit:
>
> > #;4> (call-with-input-request "
> >
>
> https://www.google.com/accounts/ClientLogin?Email=<email>&Passwd=<password>&source=GooglecURL-Example&service=reader"
>
>
> That's an https: URL. Does http-client support those?
>
> --
> Híggledy-pìggledy / XML programmers John
> Cowan
> Try to escape those / I-eighteen-N woes;
> http://www.ccil.org/~cowan
> Incontrovertibly / What we need more of is
> address@hidden
> Unicode weenies and / François Yergeaus.
>
>
> _______________________________________________
> Chicken-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/chicken-users
>
> --===============0180303
- Re: [Chicken-users] Problem with http-client in chicken 4.2.0, Colin Fleming, 2009/11/01
- Re: [Chicken-users] Problem with http-client in chicken 4.2.0, Colin Fleming, 2009/11/01
- Re: [Chicken-users] Problem with http-client in chicken 4.2.0, Peter Bex, 2009/11/01
- Re: [Chicken-users] Problem with http-client in chicken 4.2.0,
F. Wittenberger <=
- Re: [Chicken-users] Problem with http-client in chicken 4.2.0, Peter Bex, 2009/11/01
- Re: [Chicken-users] Problem with http-client in chicken 4.2.0, Colin Fleming, 2009/11/01
- Re: [Chicken-users] Problem with http-client in chicken 4.2.0, Colin Fleming, 2009/11/01
- Re: [Chicken-users] Problem with http-client in chicken 4.2.0, Colin Fleming, 2009/11/01
- Re: [Chicken-users] Problem with http-client in chicken 4.2.0, Peter Bex, 2009/11/01