Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-08

problems posting data with synapse to identi.ca

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Tobias Diekershoff

Hello everybody!

I try to write a little program to interact with identi.ca and struggle with sending a new message. The (better then nothing)API says [1]

---------------------
Login
You have to have a valid login cookie to post. To get one, send an HTTP POST to http://identi.ca/main/login with the arguments nickname and password.
Post notice
Once you have login cookies, you can post notices. To send one, submit an HTTP POST message to http://identi.ca/notice/new with the argument status_textarea, a string of maximum 140 characters. ----------------------

As I implemented fetching a timeline with synapse, It would be nice if anybody coud give me a hint with this. I've tried HttpPostURL, but the result is not very promising (i.e. false), which could be because this is my first try with synapse at all...

Thanks in advance!

so long
Tobias

[1] http://laconi.ca/trac/wiki/Version0API

\|/ O O /------uUu-/ \-uUu------------------------\ | \_/ Tobias Diekershoff | | URl ...... www.diekershoff.net | | Mail ..... | | PGP-ID ... 0x66A73B17 | | Jabber ... | | SIP ...... | | Skype, ICQ auf nachfrage | \-----------------------------------------/
Tobias Diekershoff
to Tobias Diekershoff
As I implemented fetching a timeline with synapse, It would be nice if anybody coud give me a hint with this. I've tried HttpPostURL, but the result is not very promising (i.e. false), which could be because this is my first try with synapse at all...

I got a step further. Found the way to post the request. But the result is not the expected. I receive a 301.

Am I right in assuming, that the HTTP.cookie is used for successive requests? Got a PHPSESSID, so that would be handy, if it is reused. Or do I have to take care of that?

TIA & so long
Tobias

\|/ O O /------uUu-/ \-uUu------------------------\ | \_/ Tobias Diekershoff | | URl ...... www.diekershoff.net | | Mail ..... | | PGP-ID ... 0x66A73B17 | | Jabber ... | | SIP ...... | | Skype, ICQ auf nachfrage | \-----------------------------------------/