Displaying 5 results from an estimated 5 matches for "httpredirection".
2017 Jun 09
6
Logging the click data
> The log command will be executed wherever it is in the template.
> By "current system user", what do you mean? There'll need to be
> write permission for the CGI process, which is probably the same
> identity as the web server process.
I basically changed the ownership of the /var/log/omega directory to
the current user using:
sudo chown `whoami` /var/log/omega
But I
2012 Oct 18
2
Different return codes on exec during puppet agent run vs command line Windows
Trying to run this exec in one of our manifests. When the resource is run
during a puppet run, it returns a error code 87. But when I execute the
same command on command prompt, it returns 3010. Is there any way to dig
and and find out why the return codes are different. FYI, I am using the
sysnative path to avoid the file system redirection on windows.
Platform: Windows 2008R2 64 bit
2007 Oct 05
3
basic_auth problem since 0.6.9
I have a site that I don''t think "returns" a basic_auth request, but is
able to use basic_auth.
In the past on 0.6.8, I could use the following code:
require ''rubygems''
# gem ''mechanize'', ''=0.6.8''
require ''mechanize''
agent = WWW::Mechanize.new
agent.basic_auth("username", "password")
2012 May 25
1
Connect reset by peer error
...=> @code, ''client_id''=>''my_client_id'', ''client_secret''=>''my_secret_key''}, '';'')
res = Net::HTTP.new(url.host, url.port).start { |http| http.request(req) }
case res
when Net::HTTPSuccess, Net::HTTPRedirection
# OK
else
# res.error!
end
render :text => @code.inspect
end
I get a valid authorization code but unable to proceed to get access token due to above error. The third party API has to return a response in json format.
Any help is much awaited and appreciated!
--
You r...
2009 Apr 12
9
invalid byte sequence utf-8 OR best option to sanitize content brought in with net::http? single non-utf character causes rails to crash
hi all,
platform: debian lenny, ruby1.91.p0, passenger/apache-multithread,
rails2.3 in vendor/postres and sql server via odbc. all current gems.
i have legacy asp content on win2k servers that i wrap in rails
controllers. this all worked great with ruby1.8, but now that we are
dealing with encoded strings in ruby1.9, i am having page crashes
randomly as users have cut and pasted high ascii code