|
|
re: Proposed API for Remote Group and Conv Creation
by Alan Savoy on Oct 16, 2008 - 12:02 PM read 65 times |
Hey Marc,
I am trying to create a conversation programmatically, but I am getting an odd response. When I send the following:
POST /convs HTTP/1.1
Accept: */*
Accept-Language: en-us
UA-CPU: x86
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Host: www.ngenera.com
Connection: Keep-Alive
Pragma: no-cache
Content-Length: 138
<f_conv>
<type>Conv</type>
<subject>Test Prog Creation</subject>
<body/>
<tag_list>test</tag_list>
<parent/>
</f_conv>
I get this response:
HTTP/1.1 302 Moved Temporarily
Date: Thu, 16 Oct 2008 16:54:25 GMT
Server: Mongrel 1.1.5
Status: 302 Found
Cache-Control: no-cache, max-age=2592000
Content-Type: text/html; charset=UTF-8
location: http://www.ngenera.com/convs/dashboard
Content-Length: 104
Expires: Sat, 15 Nov 2008 16:54:25 GMT
Vary: Accept-Encoding
Set-Cookie: _openidauth_session_id=9c5d5f8ccaf0be7870abb2d253b49848; path=/
Connection: close
<html><body>You are being <a href="http://www.ngenera.com/convs/dashboard">redirected</a>.</body></html>
Do you know what I am doing wrong?



