Bug in HttpRequestFormPost (General questions)

by Saurabh, (7101 days ago)

Modifying form field values after they have been added does not work. See the code modified from your form post example to reproduce the bug:
[code]
wodHttp1.URL = http://www.weonlydo.com/HttpDLX/Demo/TestFormPost.asp

wodHttp1.Request.FormPost.Add Username , anything
wodHttp1.Request.FormPost.Add Password , not joe
' Let us try to change the username
wodHttp1.Request.FormPost( Username ).Value = something else
' Displays Username=something+else&Password=not+joe as expected
MsgBox wodHttp1.Request.FormPost.ToString
' BUG: This still posts Username=anything
wodHttp1.Post
[/code]

locked

Complete thread: