thanks david, never thought of that, though im sure this is code ive used 
before, but will try it out.

On Wednesday, January 16, 2019 at 2:39:04 PM UTC+8, davidwaf wrote:
>
> Meant:
>
> r.setPost  comes first before you do the arguments ?
>
>
>
> On Wed, Jan 16, 2019 at 8:35 AM David Wafula <davi...@gmail.com 
> <javascript:>> wrote:
>
>> I think it works with this order?
>>
>>  r.setUrl(url); //this comes first ??
>>  r.setPost(true);
>>  r.addArgument("id", "theid);
>>  r.addArgument("pw", "thepws);
>>
>>
>> On Wed, Jan 16, 2019 at 8:26 AM Gareth Murfin <gareth...@gmail.com 
>> <javascript:>> wrote:
>>
>>> Post body is empty in there. Should that show post parameters though ?
>>>
>>> On Wednesday, January 16, 2019 at 11:40:19 AM UTC+8, Steve Hannah wrote:
>>>>
>>>> What does the network monitor say?  You can look at the post body there.
>>>>
>>>> On Tue, Jan 15, 2019 at 7:10 PM Gareth Murfin <gareth...@gmail.com> 
>>>> wrote:
>>>>
>>>>> Really not my week is it.... Im doing an ordinary post to my clients 
>>>>> api, but it wont work. I send over the post params like this:
>>>>>
>>>>> r.addArgument("id", "theirid");
>>>>> r.addArgument("pw",     "theirpass");  
>>>>> r.setPost(true);
>>>>> NetworkManager.getInstance().addToQueue(r);
>>>>>
>>>>> I have done this a million times in cn1 and never had a problem, but 
>>>>> for some reason his API reports the id is "null"..  and wont let me 
>>>>> login... this is the same code ive used on other apps with no issue.. I 
>>>>> also tried sending json body etc, same error..
>>>>>
>>>>> It works in postman using post params... we also made a website to 
>>>>> test it, where it works fine too... Is there some weird thing happening 
>>>>> with post in CN1? or something I forgot?    
>>>>>
>>>>> Also if he switches to GET and we do it that way it does work... any 
>>>>> ideas?? Also the url is httpS, is there anything special I need to do ?
>>>>>
>>>>> -- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "CodenameOne Discussions" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to codenameone-discussions+unsubscr...@googlegroups.com.
>>>>> Visit this group at 
>>>>> https://groups.google.com/group/codenameone-discussions.
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/codenameone-discussions/46a89345-0d4a-4d54-be93-5f5947b5d3ff%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/codenameone-discussions/46a89345-0d4a-4d54-be93-5f5947b5d3ff%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> -- 
>>>> Steve Hannah
>>>> Software Developer
>>>> Codename One
>>>> http://www.codenameone.com
>>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "CodenameOne Discussions" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to codenameone-discussions+unsubscr...@googlegroups.com 
>>> <javascript:>.
>>> Visit this group at 
>>> https://groups.google.com/group/codenameone-discussions.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/codenameone-discussions/d3026b81-c431-40ad-9e9c-58e7cd8bd35f%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/codenameone-discussions/d3026b81-c431-40ad-9e9c-58e7cd8bd35f%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>> -- 
>> David W
>>
>
>
> -- 
> David W
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/aa2ab32d-1e4d-4afe-bc46-a73690308927%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to