# HTTP Post using Internet Explorer

**URL:** <https://www.ruby-forum.com/t/http-post-using-internet-explorer/109118>\
**Category:** Ruby\
**Created:** [July 11, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/http-post-using-internet-explorer/109118 "2007-07-11T16:25:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Charles\_Gillman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/cc9497/32.png) [@Charles\_Gillman](https://www.ruby-forum.com/u/Charles_Gillman)\
**Post date:** [July 11, 2007, 4:25pm UTC](https://www.ruby-forum.com/t/http-post-using-internet-explorer/109118/1 "2007-07-11T16:25:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Charles\_Gillman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/cc9497/32.png) [@Charles\_Gillman](https://www.ruby-forum.com/u/Charles_Gillman)\
**Post date:** [July 11, 2007, 4:30pm UTC](https://www.ruby-forum.com/t/http-post-using-internet-explorer/109118/2 "2007-07-11T16:30:04Z")

</div>

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/rdoc/index.html](http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html)

–Kyle

---

<div class="post-metadata">

**Author:** ![Charles\_Gillman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/cc9497/32.png) [@Charles\_Gillman](https://www.ruby-forum.com/u/Charles_Gillman)\
**Post date:** [July 11, 2007, 4:39pm UTC](https://www.ruby-forum.com/t/http-post-using-internet-explorer/109118/3 "2007-07-11T16:39:06Z")

</div>

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
