- Timestamp:
- 04/24/08 21:03:38 (7 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/WebService-Simple/trunk/lib/WebService/Simple.pm
r10332 r10334 8 8 use Data::Dumper (); 9 9 use Digest::MD5 (); 10 use URI::Escape; 10 11 use WebService::Simple::Response; 11 12 use UNIVERSAL::require; … … 131 132 if($url){ 132 133 $url =~ s!^/!! if $url =~ m!^/!; 133 } 134 $uri->path( $uri->path . $url) if $url;134 $uri->path( $uri->path . $url); 135 } 135 136 136 137 # The url must be initialized with default parameters. 137 138 139 map { utf8::encode($extra{$_}) if utf8::is_utf8($extra{$_}) } keys %extra; 140 138 141 $uri->query_form( %{$self->basic_params}, %extra ); 139 142 140 143 my $response; 141 142 144 $response = $self->__cache_get([$uri, @headers]); 143 145 if ($response) { … … 164 166 165 167 my $uri = URI->new($self->base_url); 166 $uri->path( $uri->path . $url) if $url; 168 if($url){ 169 $url =~ s!^/!! if $url =~ m!^/!; 170 $uri->path( $uri->path . $url); 171 } 167 172 168 173 # default parameters must come *before* @params, so unshift instead
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)