Skip to main content
Participant
Jan 29, 2008 10:46 AM UTC
Question

Scripting with FTP and HTTP

Hi All,

To help us with future planning, we would like to get a feel for how many developers are using the FTP and HTTP objects that are available with scripting in CS3 (through webaccesslib). If you are using them could you send me a quick email describing how you use the component? My email address is alan.morris@adobe.com

Thanks in advance.

Alan Morris
Dev Tech Engineer
Adobe Systems
This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

Participant
Apr 10, 2008 7:56 PM UTC
Hi Everybody,
I am trying to use the HttpConnection object within bridge. I am able to hit a php page but the POST values don't seem to be going through. The round trip is happening though. Any pointers would be really appreciated. I am posting the snippet I am using.

var http = new HttpConnection("http://www.vijayshan.com/labs/tracer/dataHarvester.php" ) ;
http.requestEncoding="ASCII";
http.method = "POST";
http.request = "test=hello1&test1=100&test2=25" ;
http.execute() ;

Vijay
Translate
Participant
Mar 3, 2010 5:44 AM UTC

I am actually seeing the same exact thing. No variables are posted. I would love to see an example of this working.

Translate
Participant
Mar 3, 2010 7:45 PM UTC

Yeah, this is so aggrevating!

Adobe builds all of these cool ideas, then doesnt test them.

The HTTPConnection object does not do POST at all. I have tried nearly every possibility. The documentation is either way off or the object just does not work. I can see the post in raw form and the POST variables are not coming across.

After working on this for a few hours i thought to myself, hey maybe i should just create a flash pane instead and load the files into it, then have the flash object upload. Well i ran into a big fat wall there too! As it is with patchpanel and bridge, these technologies only accept swf objects. This whole concept of using SWF and crossscripting has a huge flaw. The SWF file's security format does not allow for local file access for doing simple things like upload. If i can't synchronize file data to web based clouds, then i cant do much worth talking about.

I love these products and their possibilities but i have to have the ability to communicate with the world. HTTP is the way!

Also a side note, FTP is an insecure/inflexible solution and looks like a lot more time was spent on this aspect of the scriptable product.

PLEASE HELP ADOBE!!!!!

Translate
Participating Frequently
Mar 11, 2008 8:31 PM UTC
Hello,

I use FTP-Scripting quite often for a lab here in Germany. It's mostly dealing with getting icc-profile updates to every bridge-client and with downloading images (that our customers uploaded to our webserver) directly into our workflow.

At the moment, I'm working on a connection from bridge to our database. I'm useing the HTTPConnection Class for that, but it is harder than I thought it would be :(

Regards,

Markus Selbach
Cologne, Germany
Translate
Known Participant
Jan 29, 2008 12:09 PM UTC
Alan.Morris@adobeforums.com wrote:
> To help us with future planning, we would like to get a feel for how many developers are using the FTP and HTTP objects that are available with scripting in CS3 (through webaccesslib). If you are using them could you send me a quick email describing how you use the component? My email address is alan.morris@adobe.com
>

I developed an FTP-wrap-around that you can find here:
http://ps-scripts.cvs.sourceforge.net/*checkout*/ps-scripts/xtools/xlib/FTP.jsx

It's part of my xtools library.

It basically provides a hardened wrapper to the ftp facilities available in
Bridge. It includes a progress bar, etc...

I also wrote up the PS side so that I could make an FTP upload call from within PS.

Let me know if you need more info.

I haven't had a need to do anything with the HTTP libs so I can't help you there.

-X
--
for photoshop scripting solutions of all sorts
contact: xbytor@gmail.com
Translate