I have add the loans to the structure, but still get 404 error, please
see the interception information below :
Content-Length: 63
Expect: 100-continue
HTTP/1.1 100 Continue{"loans":[{"id":425880,"amount":25},{"id":
106957,"amount":30}]}HTTP/1.1 302
FoundDate: Tue, 15 May 2012 07:47:52 GMT
Server: Apache
Vary: Host,Accept-Encoding
P3P: CP="HONK"
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-
check=0
Pragma: no-cacheLocation:
http://www.kiva.org/error.html?url=basket%2Fset&status=404
Content-Type: text/html
Via: 1.1 f
Content-Length: 0
Proxy-Connection: Keep-Alive
Connection: Keep-Alive
Set-Cookie: kv=ql1ebsgens8b9sjcp471ugjoac8i6u3k; path=/; HttpOnly
Cookie: kv=ql1ebsgens8b9sjcp471ugjoac8i6u3k
On 5月15日, 下午2時23分, Noah Balmer <
n...@kiva.org> wrote:
> You have to set a "loans" or "donation" POST parameter for the basket/set
> url to work. If you don't, it will give you a 404.
>
>
>
>
>
>
>
> On Mon, May 14, 2012 at 11:06 PM, Kevin O'Brien <
ke...@kiva.org> wrote:
> > I'm not really sure I understand what you are trying to accomplish, but
> > granted I'm pretty limited with my C#.
>
> > Could you explain in pseudo-code what you are trying to do?
>
> > Is your goal to send people to the Kiva basket with a POST request to fill
> > in the loans to acquire?
>
> > -k
>
> > On Mon, May 14, 2012 at 10:58 PM, Cary <
boboc...@gmail.com> wrote:
>
> >> Here is the network package I got from Winshark
>
> >> POSThttp://
www.kiva.org/basket/setHTTP/1.1
> >> Content-Type: text/plain; charset=utf-8
> >> Host:
www.kiva.org
> >> Content-Length: 25
> >> Expect: 100-continue
>
> >> HTTP/1.1 100 Continue
>
> >> {"id":425356,"amount":25}HTTP/1.1 302 Found
> >> Date: Tue, 15 May 2012 05:41:20 GMT
> >> Server: Apache
> >> Vary: Host,Accept-Encoding
> >> P3P: CP="HONK"
> >> Expires: Thu, 19 Nov 1981 08:52:00 GMT
> >> Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-
> >> check=0
> >> Pragma: no-cache
> >> Location:
http://www.kiva.org/error.html?url=basket%2Fset&status=404
> >> Content-Type<
http://www.kiva.org/error.html?url=basket%2Fset&status=404Content-Type>: