search for: http_user_agent

Displaying 20 results from an estimated 53 matches for "http_user_agent".

2006 Apr 07
1
[FYI] issues with integration testing
I was working on an integration test to test login/logout functionality and came across an issue that took me a bit to figure out. In one of my controllers, I have to test the request.env["HTTP_USER_AGENT"] value as a portion of the app will be access by Windows CE hand-helds. in the controllers index action i had the lines logger.info "user agent: " + request.env["HTTP_USER_AGENT"] redirect_to :controller => "handheld", :action => "index" and ret...
2004 Aug 06
3
icecast2 ogg vorbis client request headers
Can anyone shed some light as to what icecast2 accepts as a client request methods for ogg vorbis, apparently there is a difference bettween the way icecast2 handles mp3 and ogg vorbis. php example for mp3 that works fwrite($fp,"GET /mymp3 HTTP/1.1\nUser-Agent:$HTTP_USER_AGENT\n\n"); php example for ogg that doesnt work fwrite($fp,"GET /mymnt.ogg HTTP/1.1\nUser-Agent:$HTTP_USER_AGENT\n\n"); ideas?? Dave St John Mediacast1 Administration Need Support ? http://mediacast1.com/helpdesk <p>--- >8 ---- List archives: http://www.xiph.org/archives/...
2008 Sep 30
4
Using the response object in stories
I have this statement in the layout of my application (using haml) - if request.env["HTTP_USER_AGENT"].include?("MSIE") = stylesheet_link_tag ''blueprint/ie.css'' = stylesheet_link_tag ''confirm_ie.css'' The problem is that request.env["HTTP_USER_AGENT"] is nil when I go to some page in the features I write with cucumber and webrat This...
2007 Oct 16
5
RailsStory - lessons learned
...sting support does not serve up static pages 2. RailsStory masks errors generated by the app under test 3. The masked errors are available in log/test 4. I should read log/test more often See http://pastie.caboo.se/107876 for an example for points 2 and 3 The welcome controller fails when the HTTP_USER_AGENT is missing. This error shows up in log/test but I do not know how to display the error from within RailsStory. Alvin.
2007 May 29
1
Headers munged into RAW_POST_DATA
...weird problem in our production environment. "Connection: Keep-Alive\r\n" is being pre-pended to the RAW_POST_DATA, which makes requests error out. This bug is seen infrequently and *seems* to be browser-related, although I can''t reproduce it using the browser reported in HTTP_USER_AGENT. Set up is a hardware load balancer (NetScaler) -> mongrel_cluster 0.2.1/mongrel 1.0 Has anyone else seen this or have any advice? I''m thinking I''ll cobble together a kludge that inspects @head[''RAW_POST_DATA''] and just sub out "Connection: Keep-A...
2004 Aug 06
3
icecast2 ogg vorbis client request headers
> You must have some other, unrelated, problem, presumably elsewhere in your > code. this is what i have, and does work with mp3, but ogg does not want to work. im testing with winamp, you think that may be the issue? <p><p>fwrite($fp,"GET /mymp3 HTTP/1.1\nUser-Agent:$HTTP_USER_AGENT\n\n"); for ($i=0; $i<120; $i++) { if (feof($sp)) break; $str.=fread($sp,4096); usleep(200000); if (strpos($str,"\r\n\r\n")) break; } flush(); echo substr($str,strpos($str,"\r\n\r\n")+4); flush(); while(!$shutdown_flag) { $buf=fread($sp,4096); if (feof($sp))...
2006 Mar 21
4
Determining Browser?
Is there a way I can read the user agent or something similar to determine whether the person is using IE, Mozilla/Netscape, Opera, Safari, etc? I want to dynamically output the CSS to the browser, but I''d like to change certain things (in this case the widths of some divs since IE adds borders and padding size to the total size of a div unlike firefox). Thanks, - Brent
2006 Jul 10
4
Test Mongrel 0.3.13.4 Please
Hey Folks, There''s a nasty little bug in 0.3.13.3 when running in development mode which could cause all sorts of problems. Please grab the pre-release of 0.3.13.4 and tell me if it works for you: gem install mongrel --source=http://mongrel.rubyforge.org/releases/ Thanks! -- Zed A. Shaw http://www.zedshaw.com/ http://mongrel.rubyforge.org/ http://www.railsmachine.com/ -- Need
2006 Apr 10
6
detecting browser type?
I''m wondering how i can detect the browser type for the client. I know this is possible, but i cant seem to find how to do this, nor any example code for this. I would appreciate if someone could point me to some info or just give me an explanation. thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2007 May 30
0
Headers munged into RAW_POST_DATA
...really weird problem in our production environment. "Connection: Keep-Alive\r\n" is being pre-pended to the RAW_POST_DATA, which makes requests error out. This bug is seen infrequently and *seems* to be browser-related, although I can''t reproduce it using the browser reported in HTTP_USER_AGENT. Set up is a apache 2.2 -> hardware load balancer (NetScaler) -> mongrel_cluster 0.2.1/mongrel 1.0 -> rails 1.2.1 Has anyone else seen this or have any advice? I''m thinking I''ll cobble together a kludge that inspects @head[''RAW_POST_DATA''] and just sub...
2006 Aug 13
3
Render nothing; go nowhere
...f login session[:user_id] = nil if request.post? user = User.authenticate(params[:name], params[:password]) if user session[:user_id] = user.id if session[:intended_action].nil? || session[:intended_controller].nil? if (@request.env[''HTTP_USER_AGENT''] == "MyCustomCClient") #did it come from my C++ program? #### <---- I need something here -----> #### else redirect_to(:action => "index") #deals with direct access to /login/login end else...
2004 Aug 06
0
icecast2 ogg vorbis client request headers
...e: > Can anyone shed some light as to what icecast2 accepts as a client request > methods for ogg vorbis, apparently there is a difference bettween the way > icecast2 handles mp3 and ogg vorbis. > > php example for mp3 that works > fwrite($fp,"GET /mymp3 HTTP/1.1\nUser-Agent:$HTTP_USER_AGENT\n\n"); > > php example for ogg that doesnt work > fwrite($fp,"GET /mymnt.ogg HTTP/1.1\nUser-Agent:$HTTP_USER_AGENT\n\n"); > These should both work. To be strictly correct, you must use \r\n everywhere you have \n, but icecast isn't picky about that. You also must se...
2008 Jul 12
1
Re: Re stful_authentication, Internet Explorer, and unwanted http basic dialog
I''m glad I found your post Joshua - it saved me quite a bit of time! To get this to work for me however (IE6), I had to ditch the ||= and do straight assignment: request.format = :html if request.env[''HTTP_USER_AGENT''] =~ /msie/i Joshua Doss wrote: > > > Alter access_denied to add this line (right below "def access_denied"): > > request.format ||= :html if request.env[''HTTP_USER_AGENT''] =~ /msie/i > > It''s a quick hack but it seems to work...
2016 Mar 15
3
LLVM.org/viewvc down?
Unfortunately, we had lot of bogus requests to viewvc (e.g. asking for history / blame for random revision) which looked like a DoS. Most probably we'll enable it after llvm.org will be migrated to new hardware. On Tue, Mar 15, 2016 at 1:24 PM, Hans Wennborg <hans at chromium.org> wrote: > The commit emails, including the ones in the mailing list archives, > also have links to the
2006 Jan 05
1
unicode hacks - fixes for webrick and Safari
...tf8) Object::ActionController::Base.send(:after_filter, :restore_kcode) Additionally, I have modified the safari fix, so that it re-encodes the entities only for Safari version less than 1.3. Instead of original condition I propose this one: if @request.xhr? and @request.env[''HTTP_USER_AGENT''] =~ / AppleWebKit\/(\d+)/ and $1.to_i < 312 Julian, if you want to include these solutions into your plugin, feel free to do so.... Regards, Izidor Jerebic
2004 Aug 06
2
icecast2 ogg vorbis client request headers
...ome light as to what icecast2 accepts as a client request > > methods for ogg vorbis, apparently there is a difference bettween the way > > icecast2 handles mp3 and ogg vorbis. > > > > php example for mp3 that works > > fwrite($fp,"GET /mymp3 HTTP/1.1\nUser-Agent:$HTTP_USER_AGENT\n\n"); > > > > php example for ogg that doesnt work > > fwrite($fp,"GET /mymnt.ogg HTTP/1.1\nUser-Agent:$HTTP_USER_AGENT\n\n"); > > > > These should both work. To be strictly correct, you must use \r\n everywhere > you have \n, but icecast isn't p...
2011 Feb 17
3
Handling InvalidAuthenticityToken from bots
I''m using exception_notifier to get an email when a 500 error occurs in production. Lately I''m seeing a lot of nonsensical POSTs show up that cause an InvalidAuthenticityToken error. All the fields contain random characters. (For instance, "search_title"=>"BHQWTZpjGeb") Is there a way to detect them and not send the email, while still sending the email in
2006 Jun 28
8
How to obtain clients IP adress
Is it possible to obtain clients adress in ruby on rails? by TheR -- Posted via http://www.ruby-forum.com/.
2005 Oct 17
4
How to send excel file to browser (spreadsheat 0.3.2)
hey, i want to generate an excel file and send it directly to the browser (without storing it to the harddisk). does anyone has any solution? thanks in advance this is my code: -------------------- def export_excel if @request.env[''HTTP_USER_AGENT''] =~ /msie/i @headers[''Pragma''] = '''' @headers[''Cache-Control''] = '''' else @headers[''Pragma''] = ''no-cache'' @headers[''Cache-Control''] = ''no-cache, mu...
2004 Aug 24
1
error when unsubscribe (PR#7198)
..._CACHE_CONTROL no-cache SSL_SERVER_S_DN_C CH REQUEST_URI /mailman/options/r-help HTTP_ACCEPT application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* SSL_SERVER_M_SERIAL 13 SSL_SERVER_S_DN_CN stat.ethz.ch HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0; H010818; (R1 1.3)) nokeepalive 1 GATEWAY_INTERFACE CGI/1.1 SSL_PROTOCOL SSLv3 REMOTE_PORT 39557 HTTP_ACCEPT_LANGUAGE en-gb, en-gb HTTP_ACCEPT_ENCODING gzip, deflate, gzip, deflate ssl_unclean_shutdown 1 SSL_SERVER_V_END Jan...