galleryadd.pl gets error 500 at login
geantbrun
Joined: 2007-07-21
Posts: 13 |
Posted: Sat, 2007-11-10 15:18 |
hello, /usr/bin/perl galleryadd.pl -g http://www.geantbrun.com/albums -u myuser -p mypassword -G 2 -a album_name photo.jpg -v I always get this error message: http://www.geantbrun.com/albums/main.php Any hint very appreciated! |
|
Posts: 26
Obtain an IP address from the IP name of your site (your site URL without the leading 'http://'). This lookup (conversion of IP name to IP address) is provided by domain name servers (DNSs).
Open an IP socket connection to that IP address.
Write an HTTP data stream through that socket.
Receive an HTTP data stream back from your Web server in response. This data stream contains status codes whose values are determined by the HTTP protocol. Parse this data stream for status codes and other useful information.
----------
http://www.lisisoft.com/::http://www.lib-art.com/
Posts: 13
Thank you pelinga for your answer.
I opened a socket connection through PHP to retrieve information about my server:
HTTP/1.1 200 OK Date: Tue, 27 Nov 2007 21:28:03 GMT Server: Apache/2.0.54 (Unix) PHP/4.4.7 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.4.2 X-Powered-By: PHP/4.4.7 MS-Author-Via: DAV Vary: Accept-Encoding Transfer-Encoding: chunked Content-Type: text/html
Could you be more explicit about writing an HTTP data stream through a socket, receiving data, parse for *useful* status codes?
Thank you again,
geantbrun
Posts: 12
I get the same error (well, different URL, username, and password, but same type of error. I can manually add files through my web browser through the website, but the Perl script gives me this error every time. I had started another thread about this, because I hadn't found this thread yet, but it got deleted.
Does anyone have any suggestions that don't require programming and an extensive knowledge of hypertext transfer protocol to understand?
Posts: 1
I has this problem.
If you are using Gallery2, make sure you have the Remote Interfaces plugin installed and enabled.
galleryadd.pl uses this interface to control gallery (version 2 only)
regards
JOhn
Posts: 13
A little bit late but... thanks johncass, it works now!
Patrick