Forum: Ruby HTTP Post using Internet Explorer

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bd0f73205bacdda546a0d969748a5416?d=identicon&s=25 Charles Gillman (Guest)
on 2007-07-11 16:25
(Received via mailing list)
Hi

I am using Win32ole to automate Internet Explorer and need to "post" the
form variables.  This is done by passing additional parameters to the IE
Navigate method.

I can nearly get the function to work by passing the 4th parameter (the
post
data) as an array, if I use string the Navigate method reverts to a HTTP
Get.  However when I pass the data as an array I get non-ASCII rubbish
in
the actual post data sent to the server.

I have tried calling the method via its Dispatch ID using _invoke method
and
setting the type of parameters passed but with identical results.

Unfortunately WATIR et al doesn't fit the bill for what I am trying to
do.

Has anyone got IE to post data via the Navigate method??

Thanks
CG
9dec3df8319c613f6f4f14a27da0fdb4?d=identicon&s=25 Kyle Schmitt (Guest)
on 2007-07-11 16:30
(Received via mailing list)
What exactly are you trying to do that Watir doesn't fit the bill for?
 Just curious.
Anyway if you want to manually manipulate a post, why not use
Net::HTTP?  It's good at that stuff :)
http://www.ruby-doc.org/stdlib/libdoc/net/http/rdo...

--Kyle
Bd0f73205bacdda546a0d969748a5416?d=identicon&s=25 Charles Gillman (Guest)
on 2007-07-11 16:39
(Received via mailing list)
Thanks Kyle

I want to automate some testing including fuzzing some of the post data
input.  Net::HTTP can definitely do it but I wanted to view the results
of
test visually especially for some pages that will return a 200 OK
message
regardless of what you through at it.

Cheers
This topic is locked and can not be replied to.