From: Mike G. v. a. <we...@ma...> - 2010-05-14 01:12:32
|
Log Message: ----------- minor variable name changes Modified Files: -------------- webwork2/lib/WeBWorK/ContentGenerator: renderViaXMLRPC.pm Revision Data ------------- Index: renderViaXMLRPC.pm =================================================================== RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/renderViaXMLRPC.pm,v retrieving revision 1.1 retrieving revision 1.2 diff -Llib/WeBWorK/ContentGenerator/renderViaXMLRPC.pm -Llib/WeBWorK/ContentGenerator/renderViaXMLRPC.pm -u -r1.1 -r1.2 --- lib/WeBWorK/ContentGenerator/renderViaXMLRPC.pm +++ lib/WeBWorK/ContentGenerator/renderViaXMLRPC.pm @@ -24,11 +24,10 @@ use strict; use warnings; + package WeBWorK::ContentGenerator::renderViaXMLRPC; use base qw(WeBWorK::ContentGenerator); - - #use Crypt::SSLeay; use XMLRPC::Lite; use MIME::Base64 qw( encode_base64 decode_base64); @@ -37,17 +36,17 @@ # configuration section -- point back to the current server to process answers ################################################## use constant PROTOCOL => 'http'; -use constant HOSTURL => 'localhost'; +use constant HOSTNAME => 'localhost'; use constant HOSTPORT => 80; -our $FULL_URL = PROTOCOL."://".HOSTURL; # .":".HOSTPORT; +our $FULL_URL = PROTOCOL."://".HOSTNAME; # .":".HOSTPORT; our $FORM_ACTION_URL = "/webwork2/html2xml"; # points back to current server # use constant PROTOCOL => 'https'; # or 'http'; -# use constant HOSTURL => 'hosted2.webwork.rochester.edu'; # 'localhost'; +# use constant HOSTNAME => 'hosted2.webwork.rochester.edu'; # 'localhost'; # use constant HOSTPORT => 443; #( for secure https) # 80; -# our $FULL_URL = PROTOCOL."://".HOSTURL; # .":".HOSTPORT; -# our $FORM_ACTION_URL = "$FULL_URL/webwork2/html2xml"; # points back to current server +# our $FULL_URL = PROTOCOL."://".HOSTNAME; # .":".HOSTPORT; +# our $FORM_ACTION_URL = "/webwork2/html2xml"; # points back to current server use constant TRANSPORT_METHOD => 'XMLRPC::Lite'; use constant REQUEST_CLASS => 'WebworkXMLRPC'; # WebworkXMLRPC is used for soap also!! @@ -112,7 +111,7 @@ $command = 'listLibraries' unless $command; my $requestResult = TRANSPORT_METHOD - #->uri('http://'.HOSTURL.':'.HOSTPORT.'/'.REQUEST_CLASS) + #->uri('http://'.HOSTNAME.':'.HOSTPORT.'/'.REQUEST_CLASS) -> proxy($FULL_URL.'/'.REQUEST_URI); my $input = $self->setInputTable(); |