The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Farabi on April 20, 2011, 03:31:57 AM

Title: "GET" or "POST"
Post by: Farabi on April 20, 2011, 03:31:57 AM
For example I post a url address like this http://path/to/script.php?a=1&b=2 and the php page process an image and display it on a webpage

What MIME Type I should use? And what Method I should use, POST or GET?
Title: Re: "GET" or "POST"
Post by: dedndave on April 20, 2011, 10:47:26 AM
for PHP stuff, i like Gary's little site
http://apptools.com/
he explains things very clearly   :U

i am guessing GET
you can use different mime types, depending on how you want the content to be rendered
the URL you provided doesn't help us much, though   :P
Title: Re: "GET" or "POST"
Post by: mineiro on April 20, 2011, 12:15:26 PM
you can use GET Sr Farabi.
GET have a limit of 255 chars in the URI, but today browsers don't have this limit, and the argument's are visible.
http://messagebox/user32.php?hinst=0&lpText=hello&Caption=nice&Type=MB_OK
in POST they are entered by the user, so the URL don't show this, and this limit is 4kb.
regards.