Spinner.SelectedItem problem

sasidhar

Active Member
Licensed User
Longtime User
Dear all,

I am facing issues with spinner.selecteditem , I have to pass this value to URL..
I am converting this to string and send its giving error. also if i pass spinner.selecteditem then also facing issue. if i send some other string variable Httpjob working properly

pls find the below code for ref.
ServerUrl="http://195.229.125.141/pageparameter1/Default3.aspx?"



splier=supplier.SelectedItem
sktyp=skutyp.SelectedItem
If server.GetMyIP <> "127.0.0.1" OR server.GetMyWifiIP <> "127.0.0.1" Then
sstr= ServerUrl & "param1=" & depo.Text & "&param2=" & fie.Text & "&param3=" & splier & "&param4=" & sktyp & "&param5=" & totchkd.Text & "&param6=" & UndWarr.Text & "&param7=" & cus_brk_wo_gls.Text & "&param8=" & cus_brk_wit_gls.Text & "&param9=" & Acpt_wit_sticker.Text & "&param10=" & tot_accptd.Text & "&param11=" & scrap_tobe.Text & "&param12=" & for_pur_return.Text
Msgbox(ss,"http")
htjob2.PostString(sstr,"")

Else
Msgbox("Unable to connect to server,Retry","Server")

End If


pls help below error getting..


upload_2014-8-3_0-3-14.png


Thx
Sasidhar
 

sasidhar

Active Member
Licensed User
Longtime User
Since the error message:
"...Illegal character in query at index 86..."

log(sstr) can help!


Thanks for you response..
This is the URL being generated by appln. If you run the URL in browser it works.
param3 and param4 if we pass same info in some other string it takes, once if i convert to spinner.selected text or directly send same it is not working..

http://195.229.125.141/pageparameter1/Default3.aspx?param1=hsgs&param2=svsvb&param3=HQ Lamps&param4=HQ Lamps&param5=44&param6=4&param7=5&param8=5&param9=6&param10=6&param11=6&param12=6

java.lang.IllegalArgumentException: Illegal character in query at index 86: http://195.229.125.141/pageparameter1/Default3.aspx?param1=hsgs&param2=svsvb&param3=HQ Lamps&param4=HQ Lamps&param5=44&param6=4&param7=5&param8=5&param9=6&param10=6&param11=6&param12=6

Thanks
Sasidhar
 

sasidhar

Active Member
Licensed User
Longtime User
Thanks for you response..
This is the URL being generated by appln. If you run the URL in browser it works.
param3 and param4 if we pass same info in some other string it takes, once if i convert to spinner.selected text or directly send same it is not working.. STRANGE ISSUE..MAY BE SIMPLE BT I AM UNBBLE TO..

http://195.229.125.141/pageparameter1/Default3.aspx?param1=hsgs&param2=svsvb&param3=HQ Lamps&param4=HQ Lamps&param5=44&param6=4&param7=5&param8=5&param9=6&param10=6&param11=6&param12=6

java.lang.IllegalArgumentException: Illegal character in query at index 86: http://195.229.125.141/pageparameter1/Default3.aspx?param1=hsgs&param2=svsvb&param3=HQ Lamps&param4=HQ Lamps&param5=44&param6=4&param7=5&param8=5&param9=6&param10=6&param11=6&param12=6

Thanks
Sasidhar
 
Top