With the old HTTPSocket i can send FormData with Get Method like this
[code]Dim form As Dictionary
form = New Dictionary
form.Value(“user”) = “username”
form.Value(“password”) = “password”
form.Value(“action”) = “orders_export”
form.Value(“order_from”) = “8540”
mysocket.SetFormData(form)
TextArea1.Text = mysocket.SendRequest(“GET”, “http://wwwmyshop.de/export/shop_export.php”,0)[/code]
But with the new Framework Xojo.Net.HTTPSocket I can’t do it. I’ve tried it so
[code]
Dim form As Text = “user=username&password=password&action=orders_export”
Dim data As MemoryBlock
data = Xojo.Core.TextEncoding.UTF8.ConvertTextToData(form)
mySocket.SetRequestContent(data, “application/x-www-form-urlencoded”)
mySocket.Send(“GET”, “http://www.myshop.de/export/shop_export.php”)[/code]
Is SetRequestContent only works with POST? Where is my mistake?