R
Randy Lawrence
I'm able to do a simple http.post() but when the data I'm posting is
more complex than a simple string, I get a "permission denied" Apache error.
One possibility is that encoding the data with base64 can result in
having '=' characters. I'd really appreciate it if anyone can provide
some tips on how I can successfully http.post() more complex strings
without resorting to file uploads.
Here's the script I'm using (it fails only when somedata is assigned a
complex string such as base64-encoded rsa signature):
----
require 'net/http'
somedata = 'hello'
Net::HTTP.start( 'www.somedomainxyz123.com', 80 ) {|http|
response = http.post( '/ruby/testpost.rbx',
"foo=#{somedata}" )
puts response.body
}
----
more complex than a simple string, I get a "permission denied" Apache error.
One possibility is that encoding the data with base64 can result in
having '=' characters. I'd really appreciate it if anyone can provide
some tips on how I can successfully http.post() more complex strings
without resorting to file uploads.
Here's the script I'm using (it fails only when somedata is assigned a
complex string such as base64-encoded rsa signature):
----
require 'net/http'
somedata = 'hello'
Net::HTTP.start( 'www.somedomainxyz123.com', 80 ) {|http|
response = http.post( '/ruby/testpost.rbx',
"foo=#{somedata}" )
puts response.body
}
----