[Gambas-user] gb.web how to grab using post and get?

Benoît Minisini gambas at ...1...
Fri Nov 22 21:53:44 CET 2013


Le 22/11/2013 21:42, PICCORO McKAY Lenz a écrit :
> From: Fabien Bodard <gambas.fr at ...626...>
>>
>> what give you :
>> myreqinput = Request.post["nameinput"]
>>
> try it now, and then.....   surprise dont work !!! arrggggg
>
>> And why are you using gb2 for webpages ??? gb3 compile on all
>> plateform even some old.
>
> sorry Fabian, was misctake from me.. i made the example inline on my
> mail client...
>
> I read documentation,
> and said to difference
> the request mus use Request.Get["inputname"] or Request.Post["inputname"]
>
> 1) documentation are very rare linked between topics, i cannot found
> that info in normal logic way!
> 2) the method dont work, also i note from 3.4.X to 3.5.1 and trunk,
> theres many commit around the topic ...
>
> that request of post values not working currently?
> there's another way to taken the values using post?
>
> urgency!!!!!!!!
>

Request[] works whatever the request type (GET or POST). I have no 
problem with that, so I guess your problem comes from something else.

Can you do the following?

- Use Gambas 3.5.1.
- Set Request.Debug to True at the very beginning of your script.
- Print Request.Contents that will print the first 4096 bytes of the 
POST request, and show me its value.

Thanks.

-- 
Benoît Minisini




More information about the User mailing list