Sign in to follow this  
Followers 0
EscapeTheFate

issue with autoit and urlencode :(

8 posts in this topic

_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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Try

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

no luck that posted %26amp%3b

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

Can I Pm you Dale? I'll give you a link and code.

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0