Re: [codenameone-discussions] POST problems

2019-01-17 Thread Shai Almog
The order won't change anything because the call is useless. Had you 
invoked setPost(false) you would have gotten an exception but because the 
request is already a post request it doesn't do anything. Post body arrives 
just fine for my requests.

-- 
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/b31d4482-4a12-478a-a74a-f761f05d4401%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] POST problems

2019-01-17 Thread Gareth Murfin
thanks, nothing shows up in there, no idea, this code has worked on many 
apps for years. Can you verify it still works for you steve?

On Wednesday, January 16, 2019 at 8:52:15 PM UTC+8, Steve Hannah wrote:
>
>
> Post body is empty in there. Should that show post parameters though ?
>>
>
> Yes it should show the post parameters in the request body.
>
>
>

-- 
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/cf85f0ba-7d4a-4005-8a6d-19a7726823b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] POST problems

2019-01-16 Thread Steve Hannah
> Post body is empty in there. Should that show post parameters though ?
>

Yes it should show the post parameters in the request body.

-- 
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/CAGOYrKWvZ9T3TVQoRDmfixtmDWTKYaMBHg8jOoOGBAbezu0VRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] POST problems

2019-01-16 Thread Gareth Murfin
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  > 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 > > 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  
 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
>  
> 
> .
> 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 
>>> .
>>> 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
>>>  
>>> 
>>> .
>>> 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.


Re: [codenameone-discussions] POST problems

2019-01-15 Thread David Wafula
Meant:

r.setPost  comes first before you do the arguments ?



On Wed, Jan 16, 2019 at 8:35 AM David Wafula  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 
> 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 
>>> 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
 
 .
 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.
>> 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
>> 
>> .
>> 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/CAK9Ws2c-LCK1n%2BRUUARwKdnUjUFSbreX%2BA3rpYWRN1R6tWJm9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] POST problems

2019-01-15 Thread David Wafula
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 
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 
>> 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
>>> 
>>> .
>>> 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.
> 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
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
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/CAK9Ws2dR9hqee7hxpeoKsjKJm%2BPzaPcdprL5COFcNO_5bh51pQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] POST problems

2019-01-15 Thread Gareth Murfin
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  > 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
>>  
>> 
>> .
>> 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.
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.
For more options, visit https://groups.google.com/d/optout.


Re: [codenameone-discussions] POST problems

2019-01-15 Thread Steve Hannah
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 
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
> 
> .
> 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.
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/CAGOYrKWc8ngtDHFz6Ew3OCO%3DHQ8yiT%3D-UBZJgWqdD1EL%2B0EqnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[codenameone-discussions] POST problems

2019-01-15 Thread Gareth Murfin
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.
For more options, visit https://groups.google.com/d/optout.