Displaying 19 results from an estimated 19 matches similar to: "newbie question with login form"
2007 May 23
4
Error when posting form
Trying to submit a form is resulting in the following error:
>> page = agent.submit(f, f.buttons.first)
query: "action=start&quick=Y&clientApp=0&clientID=MCO"
Net::HTTP::Post: /dealerApply/controller.jsp
using cookie:
JSESSIONID=GJ4NCvGJDTlrvrKsLw17hZ3FnlXFdVkvB5hh1jLkHKcH4Tn27371!-538794652
request-header: accept-language => en-us,en;q0.5
request-header: connection
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")
2007 Jul 23
4
Design ideas
I''m trying to use mechanize against a site that has four fields in the
form. However, those four fields have to be filled in order.
So putting something in field one, populates the second field drop down.
So I''m thinking that I''ll probably have to call the page multiple times?
What sort of things should I be doing to figure out how to interact
with this page.
2007 Oct 26
2
Post problems
Hello,
I''m having trouble using mechanise to post a form. I took a wireshark
capture of the form being submitted by firefox and by mechanise. In
both there is an HTTP Post and then a ''continuation of non-http
traffic'' packet. The obvious difference is that the firefox
continuation packet has some http metadata (I don''t know the proper
terminology) where the
2007 Apr 03
2
Scraping and saving.
Hi,
I''m working to scrape and save some ebooks. Mechanize has been
wonderful so far. The link I''m having trouble with is this one.
http://www.webscription.net/SendZip.aspx?SKU=0671578499&ProductID=379&format=H
When I click that in the browser it saves it to a file named
H_1632.zip. How do I get that name from the page. I suspect to save
this to a file I would just do
2006 Apr 28
3
persistent cookies
hello,
I am trying to implement a "remember be" box for logins, however I cant
seem to get it to work. I have tried the following 2 methods but neither
seem to work. When i check the expiry time in firefox it always says "end
of session".
What is the proper way to handle this so the session cookie "_session_id"
doesnt expire for a year?
I tried
2005 Aug 05
4
Dev Tools
What tools does everyone use to develop? Are there any tools to see what is
going to and coming back from and Ajax call that can be plugged into
firefox?
--
Eric Fleming
efleming@gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails-spinoffs/attachments/20050805/55f7e02e/attachment.html
2008 Jul 10
1
custom http headers in form.submit / upload without original form
Heyas :)
I''m wondering how do I do to send my custom HTTP headers when posting
a form. agent.set_headers is a private method and I don''t know how to
get a reference to HTTPHeaders to use add_field and such.
Since my request is a form, I''m sending it using agent.submit(form). Any hints?
Bonus question: I would like to upload a file to a REST webservice,
but I
2005 Aug 03
2
Ajax in prototype.js
Can someone please explain to me what I need to do to create an Ajax
class using the prototype lib.
Thanks,
Jon Whitcraft
Web Application Developer
Online Services - Indianapolis Motor Speedway
(317) 492-8623
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails-spinoffs/attachments/20050803/2f662bb3/attachment.html
2008 Jun 06
2
Finding out the duration of an Ogg stream
Hello people!
I'm developing a Java Ogg media player applet and I have encountered a
problem while creating a progress bar. I need to know how long, in
samples or seconds, the Ogg stream that I'm playing is, and I need to
know it before I have downloaded the entire stream. Problem is, I don't
see how I could do that.
I could provide a "duration" argument, but that would
2007 Sep 26
1
AW: How to get the duration of a file or track?
Hello,
> (1) Split the content into chain segments
> (2) extract the first and last data packet from each segment, for all tracks
> (3) recover / calculate the granulepos values for the first and last data packets (*)
> (4) convert the granulepos values from the first and last data packets into time values
> (5) take the largest difference between start and end time as the total
2007 Jul 12
3
Basic_auth questions
How do you make get the page when using basic_auth? Below is code, I am
getting a 401 error. I am not sure if the basic _auth comes before the
agent.get. I will appreciate any help.
require ''mechanize''
require ''logger''
agent = WWW::Mechanize.new {|a| a.log = Logger.new(STDERR) }
page = agent.get(''https://brewx.qualcomm.com/developer'' )
2006 May 10
2
Output Compression in Mongrel?
I''d like to implement output compression in Mongrel (ala Apache''s
mod_deflate). I have found a Rails plugin that, with minor modification,
works.
Is there even an advantage to moving the output compression from the Rails
app to a Mongrel handler?
Unless, of course, someone knows how to configure mod_proxy_balancer with
mod_deflate...
==
Will Green
Web Developer & IT
2006 Dec 07
6
Response To Form Submission Hanging
Hello,
I am using Mechanize to post a form to a website. When I do this by
hand in my browser the response takes about 35s to come back (it''s a
long page full of tables and graphics). When I do this with
Mechanize, the server starts to respond and then appears to hang.
The obvious conclusion is that my code is wrong but I am reasonably
sure that I haven''t altered it
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
2011 Jan 13
2
send_file works on Rails2,SSL - except for IE7/6
Quirky stuff here,
The current setup works fine for Firefox 3.6 and IE 8 but balks on
earlier IEs. The files are PDFs, .doc files, and other binaries but up
to several MB:
A. the users'' problem is a minor IE7 quirk: it works to download files
from clicking links, but if you use the URL instead then the browser
stops after a fraction of a second. Refreshing or hitting Return again
2006 Apr 16
9
''depot'' app, where''s session?
Many of you probably know the ''depot'' app from the ''Agile Rails
development'' book.
I have constructed the ''products'' model, the Store-controller, and the
''Cart'' and ''Line Item'' classes. I have told Application-controller about
:cart and :line_item:
model :cart
model :line_item
Here''s part of
2006 Sep 11
8
fckeditor works, but i cant get my buttons back...
I am going to bet this is a mongrel issue,because this doesn''t happen
under webrick. Anyway, I was able to get fckeditor: http://www.fckeditor.net/
to work under rails: http://www.joshuamcharles.com/xhtml/fckrails.php
i even saw the part about adding "1. Adding a YAML configuration file. For example, create
$(RAILS_ROOT)/config/mongrel_mime.yml with the contents:
xml:
2014 Dec 03
0
[PATCH] Update links.html
Adding some links to links.html
---
images/hw/pioneer_c.png | Bin 0 -> 3389 bytes
images/hw/tesla.png | Bin 0 -> 6145 bytes
links.html | 13 +++++++++++++
3 files changed, 13 insertions(+)
create mode 100644 images/hw/pioneer_c.png
create mode 100644 images/hw/tesla.png
diff --git a/images/hw/pioneer_c.png b/images/hw/pioneer_c.png
new file mode 100644
index