similar to: Change I needed to make in to_absolute_uri for unescaped URL separator characters

Displaying 20 results from an estimated 4000 matches similar to: "Change I needed to make in to_absolute_uri for unescaped URL separator characters"

2006 Nov 22
1
to_absolute_uri typo in 0.6.3?
I just started using Mechanize, and started using Ruby about thirty seconds before that, but one of the sites I''m scraping does a redirect on form submission to a badly-formed relative URL: index.cfm?action=bing&bang=boom=1|a=|b=|c= (etc.) Interestingly, Mechanize 0.6.2 handled this OK, but in 0.6.3 this causes a URI::InvalidURIError exception from URI.parse() in to_absolute_uri
2007 Jan 12
0
why dose to_absolute_uri use URI.escape?
hello. This code is abort with Mechanize 0.6.4 . ---------------------------- # sample.rb require "rubygems" require "mechanize" agent = WWW::Mechanize.new agent.user_agent_alias=''Windows Mozilla'' # top page of wikipedia for japanese agent.get("http://ja.wikipedia.org/wiki/%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8")
2010 Mar 02
0
how to get unescaped value of request.url AS-IS?
hi guys, Calling request.url returns "http://gozila-underground.com/search? search%5Bby_keyword%5D=&commit=Search" which is an escaped version of "http://gozila-underground.com:3000/search? search[by_keyword]=&commit=Search". In ruby on rails, how to get the unescaped value of request.url (AS IS)? thank you -- You received this message because you are subscribed
2007 Nov 14
0
Hpricot & mechanize fail to parse page after redirect1q
Hi everyone, My quest with mechanize/Hpricot continues :) Something extremely strange happened today - some simple working code broke down, and i can''t figure out why. I am trying to access a piratebay.org search page, which does a redirect to a relative url like this: original link: http://thepiratebay.org/s/?page=0&orderby=3&q=football+manager+2008&searchTitle=on redirects
2008 May 13
1
Problem with odfWeave: Unescaped '<' not allowed in attributes values
Dear R users, I am having a problem with odfWeave: when I run odfWeave('notes.odt', 'notes_out.odt') I get a bunch of errors that start with "Unescaped '<' not allowed in attributes values" in post-processing: <snip> ... 'content_1.xml' has been Sweaved Removing content.xml Post-processing the contents Unescaped '<' not
2010 Oct 06
0
can you mechanize.get('http://www.sephora.com/browse/product.jhtml?id=P230234') without error?
hey guys, i cant seem to mechanize.get('' http://www.sephora.com/browse/product.jhtml?id=P230234''), it errors out as: /usr/local/lib/ruby/gems/1.9.1/gems/mechanize-0.9.2/lib/www/mechanize/chain/response_header_handler.rb:32:in `handle'': invalid byte sequence in UTF-8 (ArgumentError) from
2007 Oct 10
1
Scraping AOL Webmail to login and fetch contacts?
I''m helping with a gem that is going to published under the contentfree project on rubyforge (http://rubyforge.org/projects/contentfree/). The gem is called "blackbook" and basically it will go and fetch your contacts from the major webmail providers. So far Gmail, Yahoo!, and MSN have been completed. We are trying to finish up with fetching contacts from AOL Webmail. However
2007 Oct 13
0
5 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_xml.c test/trace
libswfdec/swfdec_html_parser.c | 24 +++++++++++++++++- libswfdec/swfdec_text_field.c | 2 + libswfdec/swfdec_text_field_movie.c | 9 ++---- libswfdec/swfdec_text_field_movie_as.c | 3 ++ libswfdec/swfdec_xml.c | 5 +++ test/trace/xml-escape-5.swf |binary test/trace/xml-escape-6.swf |binary test/trace/xml-escape-6.swf.trace
2006 Nov 04
0
page caching urls with space characters broken in webrick and mongrel
Page caching of urls with spaces in them using WEBrick and Mongrel is broken in Edge Rails (and Rails 1.1.6, where I started). This is due to the dispatch flow of control in both servers converting ''+'' in requested paths into '' '' chars, whereas the page caching system writes cache files for URLs with spaces in them out as encoded ''+''
2007 Mar 20
6
bad URI problem when submitting a form
Hi all, I''ve a problem when submitting a form : the URL seems to be invalid. I really don''t see the way I should try to solve that problem. I searched on the web, but didn''t found any kind of that problem. Here is the code : require ''mechanize'' agent = WWW::Mechanize.new page =
2006 Aug 07
1
DirHandler in surplus slashing / unrequited unescaping
im using Mongrels to serve up /usr/portage/packages for other gentoo boxen. since i guess im the guinea pig with the DirHandler, ran into a couple issues: first, the client showed no files in the remote binhost, turns out the DirHandler was adding a trailing "/" to every filename, presumably making the client think they were directories, not files. attached is a patch which fixes this
2006 May 31
1
url parameter :id with slash (/) failed to route
Hi there, My routes.rb is something like map.connect '':controller/:action/:id'' However, when a url request likes http://xxx/user/category/a/b My intension is to call :controller => ''user'' :action => ''category'' :id => ''a/b'' However, :id has slash in it (a/b) will make rails fail to route. (apache fail, webrick
2009 Sep 05
0
getting an url encoded uri
Hello, I am assembling my first cool algorithms with mechanize and I came across this weird situation. I am trying to get this uri "http://www.relax.si/kratke po?itnice.aspx" like this (with url encoded uri): agent.get("http://relax.si/kratke%20po%u010Ditnice.aspx") and in return I get: WWW::Mechanize::ResponseCodeError: 400 => Net::HTTPBadRequest from
2008 Jan 16
3
settings headers in mechanize
hi, a potential mechanize user here. i''ve looked at the API but it''s not clear what capacity there is to arbitrarily set the headers - does mechanize allow for this? mechanize is clearly great for web browsing, but i also need to construct get and post requests from scratch. i''ve looked at net:http, libcurl, openuri, but mechanize seems simpler and more functional than
2006 May 30
1
Url encoding Help Pls!
Hi guys, it''s me again, I want to come up with the following url: www.mysite.com/webpage?myid=1 I keep coming up with the following url: www.mysite.com/webpage%3Fmyid%3D1 require ''uri'' $myurl = URI.escape("webpage?myid=") redirect_to(:action => $myurl + 1 ) what am I doing wrong? I also tried require ''cgi'' $myurl =
2005 Dec 30
0
Unescaped selection options
Been having a tough time finding any info on this subject (somewhat suprising actually). Looking thru the code, Rails automatically html_escape''s all option values and while this is generally good, I have some categories that have HTML embedded in them and therefore am looking for a way to turn this off. So far I have found none and am writing my own code to do this. If anyone knows
2017 Jan 16
0
fts-solr: Returning 400 on searches; unescaped braces
Michael Welsh Duggan <mwd at md5i.com> writes: > Using Debian, dovecot-solr 1:2.2.26.0-4, and solr-tomcat 3.6.2+dfsg-9, I > am getting 400 errors when doing searches. Here is an example search > query from dovecot that failed (captured with wireshark): > > Frame 23: 338 bytes on wire (2704 bits), 338 bytes captured (2704 bits) on interface 0 > Linux cooked capture
2013 Nov 08
1
Dict client unescaping sieve script
I've created a dict service that listens on a unix socket and answers queries for sieve scripts (among other things). As I understand it (from the source code at http://hg.dovecot.org/dovecot-2.2/file/tip/src/lib-dict/dict-client.c), the dict client will unescape \001n, \001t, and \0011 to line feeds, tabs, and the \001 character respectively. In my service I am escaping those three
2015 Jun 29
0
Re: URI Handling Patch
On Thu, Jun 25, 2015 at 06:44:50PM +0000, Gabriel Hartmann wrote: > I have written a patch (please see attached) which fixes both of these bugs: > > https://bugzilla.redhat.com/show_bug.cgi?id=1092583 > https://bugzilla.redhat.com/show_bug.cgi?id=1232477 > > By default, when saving a URI using xmlSaveUri it escapes everything in the > URI. QEMU doesn't want anything
2009 Mar 23
0
URL-encoding and decoding on Rails
I have a URL parameter that has special characters on it, so I do URL encoding as such: my_url(:email => CGI.escape("someemail+extension-O5WfVfzUwx8@public.gmane.org") Now, I would expect to call a CGI.unescape(params[:email]) on the action receiving this parameter, and this is true according to my functional tests. But when I tested this on the browser, it failed because,