similar to: getting an url encoded uri

Displaying 20 results from an estimated 300 matches similar to: "getting an url encoded uri"

2012 Feb 16
3
Mechanize::ResponseCodeError: 500
> Excuse me if my issue is a little bit application-specific. I need > Mechanize to submit bunch of data from our server to an online reservation > system. The url is https://secure.mdausa.org/donate/ > It works in my browser however using mechanize following error appears: > > /Library/Ruby/Gems/1.8/gems/mechanize-2.0.1/lib/mechanize/http/agent.rb:241:in > `fetch'':
2010 Oct 20
2
Mechanize::ResponseCodeError: 500
Also, excuse me if my issue is a little bit application-specific. I need Mechanize to submit bunch of data from our server to an online reservation system. The url ishttp://hajres.iranair.com/haj/request.php" It works in my browser however, using mechanize following error appears: >> agent.get("http://hajres.iranair.com/haj/request.php") Net::HTTP::Get: /haj/request.php
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")
2006 Nov 07
5
mechanize: 400 Bad Request
Hello, when trying to access a certain HTML-frame, I get: "in `request'': Unhandled response (WWW::Mechanize::ResponseCodeError)" and the page returns: "400 Bad Request" * Why? * How to solve this? With browser, it works. In the logs below, I marked 4 lines with "***", where I see possible differences in the URI. But I don''t know, if this is
2006 Dec 31
0
Retrying requests
I use this method to retry my requests if there are retrieval problems. def with_retries(num_retries = 4) begin yield rescue Errno::ECONNRESET, Errno::ECONNABORTED, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, Errno::ETIMEDOUT, Timeout::Error, WWW::Mechanize::ResponseCodeError num_retries -= 1 retry unless num_retries < 0 raise end end So I can try three times to get
2006 Sep 18
2
BUG: Possible issue with escaped hrefs
I noticed an interesting problem today when scripting against a web app. The application contained a link in it that used %20 instead of spaces. After running mechanize through the Charles debugging proxy I found that mechanize was converting %20 to %2520 (double escaping the %20). This appears to happen under both 0.5.4 and 0.6.0. Here''s a simple set of files that demonstrate
2010 Jun 04
7
Installation problem
Hey guys, i installed samba on my Ubuntu 10.04 machine (sudo apt-get install samba) and it didnt create any config files. There is no /etc/samba or /usr/local/samba. I dont realy know what to do.... The samba server fails to start and i cant connect to the machine over my network. Anyone know what i should do? I tried purging / reinstalling (apt-get and aptitude), with no success. -- Lep
2012 Aug 02
2
Handling HTTP 500 errors
Hey guys, How do you handle HTTP 500 errors with Mechanize? After researching the web I thought something like this would work: begin Mechanize.new.get(url_which_returns_500) rescue Net::HTTPInternalServerError puts "Life is awesome. Let''s move on" end Anyways, the code in the rescue block will never be executed. Can you guys help me out? Kenny
2006 Jun 09
11
Adding routes from plugin
Can anyone tell me how to add routes from plugin? I know it is possible because of this changeset: http://dev.rubyonrails.org/changeset/2967 but i didn''t find way how to do it. retro -- Posted via http://www.ruby-forum.com/.
2003 Feb 14
2
matrix from sequences
Hi all, I have a data frame with sequences of x and y from a map. I would like to know it both ways: 1. How to make a matrix from that; 2. how to make a data frame of all points in a map. Probably it is a silly question, but please tell me where to read about it or tell me how to do it. Miha Staut
2003 Nov 07
3
hack ? - urgent
Hi ! Today I have noticed some modified index.html files on some of our vhosts. Is it Apache related ? Does anyone know about this ? The content is following: IR4DEX ownz you FreeBSD - contato: ir4dex@hotmail.com -Miha
2003 Nov 07
3
hack ? - urgent
Hi ! Today I have noticed some modified index.html files on some of our vhosts. Is it Apache related ? Does anyone know about this ? The content is following: IR4DEX ownz you FreeBSD - contato: ir4dex@hotmail.com -Miha
2006 Sep 26
7
Interesting mechanize difficulty
I found an interesting page today that I was trying to script against. The server returns a 404 with content and the page just works normally in firefox despite the 404. Mechanize raises an exception on it though. I''m working on a test case now.
2012 Mar 26
2
Error: Couldn't create namespace 'Share/' Dovecot 2.1.3 ldap
Mar 26 16:38:58 cartman dovecot: imap(miha at example.com): Error: Couldn't create namespace 'Share/' for user miha-share at example.com: userdb didn't return a home directory, but location used it (%h): maildir:%%h/Maildir:INDEX=%h/index/Shared/%%u Where is the problem, the same config worked with Dovecot 1.2.x -- View this message in context:
2003 Jul 24
1
geoR size limit problem
Hi all, I tried to produce some kriged surfaces with geoR (latest version). The size of the grid should be around 900 x 650 cells (what I find is not a very big grid), and the number of points is around 2500. The command krige.conv stopped after arround 5 min saying it can not allocate a vector with around 1.5 billion units. Sounds reasonable. Is there a workaround? How would I partition the
2007 Feb 07
15
https with certificates
I poked around the web a little and didn''t run across how to use https when it asks for certificate validation. I''m trying to connect to devices that don''t have valid certificates, and in this case, I don''t care if they are or not. So when I use my browser to ge to the site, firefox asks me to allow the certificate, then one other question, then I get the
2004 Apr 10
4
Automation of c()
Hi, I have around 300 files with the x, y and z coordinates of a DEM that I would like to join in a single data frame object. I know how to automate the import of the 300 data frames. in Bash ls > names in R names<-scan(names...) With rep() and data.frame() construct a series of read.table() commands, which you write to a file and execute them with source(). I do not know however how
2017 Oct 12
2
ZFS Support
Dear libguestfs developers, as explained yesterday by Ubuntu guys on my bug report https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1722800 the libguestfs currently supports ZFS filesystem only partially i.e. for virt-rescue. Q: Would it be possible to bring ZFS support also to other libguestfs utils, like guestfish and virt-format? I would need to have two usecases supported: a)
2003 Mar 16
4
xgobi?
Hi all, As far as I understood from the documentation of xgobi. The package is intended to plot data in 3D (and more). Why if I enter example(xgobi) nothing displays even though the example calls also the xgobi command (yes I did load the library)? Do I need to install anything else for xgobi to work? I use R 1.6.1. on Windows 2000 platform or R 1.5.1 with RedHat 7.3 (none works). Miha
2004 Feb 04
2
Latin 2 encoding + fonts
Hi, In the FAQ I read about options to specify different fonts than the default ones for the console (in the file Rprofile) and for the graphical output (Rdevga). I would however like to replace Latin 1 with Latin 2 enconding for both (console and graphical) output in Windows and just graphical output in Linux. I guess it is possible but I did not find the way. How can I use the fonts