Jump to content

issue with autoit and urlencode :(


Recommended Posts

_IEFormElementSetValue ($oQuery, "name=Rhythm&pass=1aa77870&act=c")

is posted as Rhythm%26pass%3d1aa77870%26act=c because of urlencoding. I need it to post exactly like name=Rhythm&pass=1aa77870&act=c

any ideas?:) I'm really close

and yes when I click the button it posts name=Rhythm&pass=1aa77870&act=c

Link to comment
Share on other sites

_IEFormElementSetValue ($oQuery, "name=Rhythm&pass=1aa77870&act=c")

is posted as Rhythm%26pass%3d1aa77870%26act=c because of urlencoding. I need it to post exactly like name=Rhythm&pass=1aa77870&act=c

any ideas?:) I'm really close

and yes when I click the button it posts name=Rhythm&pass=1aa77870&act=c

Try

"name=Rhythm&pass=1aa77870&act=c"

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Why? Form data is encoded purposefully. It has nothing to do with IE.au3.

See http://www.w3.org/TR/html401/interact/forms.html#h-17.13.3.3

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

because when you click the button with the mouse the &s are submitted and are not encoded. but when I try to submit it the &s are encoded

I don't believe that. You'd have to prove that to me.

When I go to the AutoIt forum search page and enter the following for a keyword search:

&&&&Foo&&&&

and then click with the mouse, here is what appears in the submitted form data:

keywords=%26%26%26%26Foo%26%26%26%26

Dale

edit: formatting and clarity

Edited by DaleHohm

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

Only if there is a very good reason that you cannot do it here. As well, I've given you an example and a link to the HTML Version 4 specification that explains the design. The only possibility that I can think of that would support your claim is if there were event code tied to the form element that does something funky that you bypass with the $o_element.value call used by IE.au3.

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...