How to make http.request at the same cookie?

Hi ~

I use http.request to connect a web service, plurk. (http://www.plurk.com/API/)
The first step is to connect the login, (http://www.plurk.com/API/#/API/Users/login) , and I got the success response.
But when I try to connect other api that required login, I got the fail response that told me must login first.

My code is

1
2
3
4
5
6
7
8
9
10
11
local http = require("socket.http")
local plurkApiUrl = "https://www.plurk.com/API/"
local result
 
local postBody = "api_key=APIKEY&username=idben&password=password&no_data=1"
result = http.request( plurkApiUrl .."Users/login" , postBody,cc )
print(result) -- {"success_text": "ok"}
 
local postBody_add = "api_key=APIKEY&content=test&qualifier=:"
result = http.request( plurkApiUrl .."Timeline/plurkAdd" , postBody_add )
print(result) -- {"error_text": "Requires login"}

*push*

I have the same problem :(

Sorry, but i REALY need this. So i will pay the first who can help me 10€ (13$) by paypal.

views:1461 update:2011/10/6 9:28:12
corona forums © 2003-2011