Simple Content Storage Protocol

Questions, tips and tricks and techniques for scripting in Servoy

Simple Content Storage Protocol

Postby Hans Nieuwenhuis » Sun Aug 22, 2010 5:36 pm

Hi,

I have an existing application that uses the ScSp protocol.

Can I use the http client plugin for communication ?

Addon : As far as i can see i can do a post and a get, but I am missing
the equivalent of the java code :
Code: Select all
response.getHeader("Content-UUID");


Regards,
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands

Re: Simple Content Storage Protocol

Postby jcompagner » Mon Aug 23, 2010 11:02 am

i dont get exactly how it works.

You do a post (you can then do addHeader()) and so on
But when the post is done (doPost method is called). The server where you posted it has given you some header values (return values?) that you then want to read in?

Where did you exactly get this:

response.getHeader("Content-UUID");

from? what kind of object is response? (that really sounds like HttpServletResponse... but that is not what the http client plugin is.. HttpServletResponse is a server object, and the http client plugin is the browser...)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Simple Content Storage Protocol

Postby pbakker » Mon Aug 23, 2010 11:23 am

This is indeed currently not possible.

You can create a feature request for this.

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Re: Simple Content Storage Protocol

Postby Hans Nieuwenhuis » Mon Aug 23, 2010 11:28 am

Thanks paul,

will do that.

Regards,
Hans Nieuwenhuis
Betagraphics
http://www.deltics.nl
http://www.betagraphics.nl

Servoy Version 7.3.1
Java version 1.7.0.x
Database Oracle 11g
User avatar
Hans Nieuwenhuis
 
Posts: 1026
Joined: Thu Apr 12, 2007 12:36 pm
Location: Hengelo, The Netherlands


Return to Methods

Who is online

Users browsing this forum: No registered users and 10 guests

cron