| Author |
Message |
|
| Guest |
Posted: Thu Sep 21, 2006 10:40 pm |
|
|
|
Guest
|
Can someone please point out the dumb error I am making?
I have a form, here is the source:
<form name="unit" method="post" action="/rentcheck/unit/update">
<p>
Address: <input id="ADDRESS" value="8121 Drexel"/>
</p>
<p>
Unit Number: <input id="UNIT_NUMBER" value="3" />
</p>
<p>
<input type="submit" value="Update"/>
</p>
</form>
I submit the form and yaws show me this:
* notice the <<>> where POST data should be.
{headers,"keep-alive",
"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5",
"www.martinjlogan.com:8080",
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
"http://www.martinjlogan.com:8080/rentcheck/unit/show?address=8121%20Drexel&unit_number=3",
"Mozilla/5.0 (X11; U; Linux i686; en-US;
rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7",
undefined,
[],
"300",
undefined,
"0",
"application/x-www-form-urlencoded",
undefined,
undefined,
undefined,
[{http_header,9,
'Accept-Charset',
undefined,
"ISO-8859-1,utf-8;q=0.7,*;q=0.7"},
{http_header,10,
'Accept-Encoding',
undefined,
"gzip,deflate"},
{http_header,11,
'Accept-Language',
undefined,
"en-us,en;q=0.5"}]},
{http_request,'POST',{abs_path,"/pwr/rentcheck/unit/update"},{1,1}},
<<>>,
"/pwr/rentcheck/unit/update",
[],
"/rentcheck/unit/update",
"/var/yaws/www",
[],
undefined,
undefined,
<0.146.0>,
[],
[],
undefined}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Fri Sep 22, 2006 12:06 am |
|
|
|
Guest
|
|
| Back to top |
|
| Guest |
Posted: Fri Sep 22, 2006 1:16 am |
|
|
|
Guest
|
Hi,
The parameter are there as part of the address :
""http://www.martinjlogan.com:8080/rentcheck/unit/show?address=8121%20Dr
exel&unit_number=3","
and you have to use yaws_api:parse_query to get them.
If you want them in the body of the request you have to set the proper
encoding-type, "multipart/form-data", in your form request:
<form name="unit" method="post" action="/rentcheck/unit/update"
enctype="multipart/form-data">
In this case you use yaws_api:parse_post to get hold of the parameters.
Regards
/Rob
-----Original Message-----
From: erlyaws-list-bounces@lists.sourceforge.net
[mailto:erlyaws-list-bounces@lists.sourceforge.net] On Behalf Of Martin
Logan
Sent: Friday, September 22, 2006 6:40 AM
To: erlyaws-list@lists.sourceforge.net
Subject: [Erlyaws-list] Post problem
Can someone please point out the dumb error I am making?
I have a form, here is the source:
<form name="unit" method="post" action="/rentcheck/unit/update">
<p>
Address: <input id="ADDRESS" value="8121 Drexel"/>
</p>
<p>
Unit Number: <input id="UNIT_NUMBER" value="3" />
</p>
<p>
<input type="submit" value="Update"/>
</p>
</form>
I submit the form and yaws show me this:
* notice the <<>> where POST data should be.
{headers,"keep-alive",
"text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/pla
in;q=0.8,image/png,*/*;q=0.5",
"www.martinjlogan.com:8080",
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
"http://www.martinjlogan.com:8080/rentcheck/unit/show?address=8121%20Dre
xel&unit_number=3",
"Mozilla/5.0 (X11; U; Linux i686; en-US;
rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7",
undefined,
[],
"300",
undefined,
"0",
"application/x-www-form-urlencoded",
undefined,
undefined,
undefined,
[{http_header,9,
'Accept-Charset',
undefined,
"ISO-8859-1,utf-8;q=0.7,*;q=0.7"},
{http_header,10,
'Accept-Encoding',
undefined,
"gzip,deflate"},
{http_header,11,
'Accept-Language',
undefined,
"en-us,en;q=0.5"}]},
{http_request,'POST',{abs_path,"/pwr/rentcheck/unit/update"},{1,1}},
<<>>,
"/pwr/rentcheck/unit/update",
[],
"/rentcheck/unit/update",
"/var/yaws/www",
[],
undefined,
undefined,
<0.146.0>,
[],
[],
undefined}
------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT Join
SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Fri Sep 22, 2006 3:09 pm |
|
|
|
Guest
|
|
| Back to top |
|
| Guest |
Posted: Fri Sep 22, 2006 3:09 pm |
|
|
|
Guest
|
The params in the URL are GET params, I am submitting the form with
method POST.
On 9/21/06, Robert Schmersel (BJ/CBC) <robert.schmersel@ericsson.com> wrote:
> Hi,
>
> The parameter are there as part of the address :
> ""http://www.martinjlogan.com:8080/rentcheck/unit/show?address=8121%20Dr
> exel&unit_number=3","
>
> and you have to use yaws_api:parse_query to get them.
>
> If you want them in the body of the request you have to set the proper
> encoding-type, "multipart/form-data", in your form request:
> <form name="unit" method="post" action="/rentcheck/unit/update"
> enctype="multipart/form-data">
>
> In this case you use yaws_api:parse_post to get hold of the parameters.
>
> Regards
> /Rob
>
>
>
> -----Original Message-----
> From: erlyaws-list-bounces@lists.sourceforge.net
> [mailto:erlyaws-list-bounces@lists.sourceforge.net] On Behalf Of Martin
> Logan
> Sent: Friday, September 22, 2006 6:40 AM
> To: erlyaws-list@lists.sourceforge.net
> Subject: [Erlyaws-list] Post problem
>
> Can someone please point out the dumb error I am making?
>
> I have a form, here is the source:
>
> <form name="unit" method="post" action="/rentcheck/unit/update">
> <p>
> Address: <input id="ADDRESS" value="8121 Drexel"/>
> </p>
> <p>
> Unit Number: <input id="UNIT_NUMBER" value="3" />
> </p>
> <p>
> <input type="submit" value="Update"/>
> </p>
> </form>
>
> I submit the form and yaws show me this:
>
> * notice the <<>> where POST data should be.
>
>
> {headers,"keep-alive",
>
> "text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/pla
> in;q=0.8,image/png,*/*;q=0.5",
> "www.martinjlogan.com:8080",
> undefined,
> undefined,
> undefined,
> undefined,
> undefined,
> undefined,
>
> "http://www.martinjlogan.com:8080/rentcheck/unit/show?address=8121%20Dre
> xel&unit_number=3",
> "Mozilla/5.0 (X11; U; Linux i686; en-US;
> rv:1.8.0.7) Gecko/20060909 Firefox/1.5.0.7",
> undefined,
> [],
> "300",
> undefined,
> "0",
> "application/x-www-form-urlencoded",
> undefined,
> undefined,
> undefined,
> [{http_header,9,
> 'Accept-Charset',
> undefined,
> "ISO-8859-1,utf-8;q=0.7,*;q=0.7"},
> {http_header,10,
> 'Accept-Encoding',
> undefined,
> "gzip,deflate"},
> {http_header,11,
> 'Accept-Language',
> undefined,
> "en-us,en;q=0.5"}]},
>
> {http_request,'POST',{abs_path,"/pwr/rentcheck/unit/update"},{1,1}},
> <<>>,
> "/pwr/rentcheck/unit/update",
> [],
> "/rentcheck/unit/update",
> "/var/yaws/www",
> [],
> undefined,
> undefined,
> <0.146.0>,
> [],
> [],
> undefined}
>
> ------------------------------------------------------------------------
> -
> Take Surveys. Earn Cash. Influence the Future of IT Join
> SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
> V
> _______________________________________________
> Erlyaws-list mailing list
> Erlyaws-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/erlyaws-list
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|