Displaying 7 results from an estimated 7 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")
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
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'' )
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