Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4114862
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:30:32+00:00 2026-05-20T22:30:32+00:00

I just started working with Yaws to try to create some simple RESTful web

  • 0

I just started working with Yaws to try to create some simple RESTful web services, however I ran into an unexpected issue: I can’t seem to access my data when I do a PUT request. When I try to use the yaws_api:parse_post function, I get the following error:

ERROR: Can't parse post body for 'PUT' requests: URL: ...

I wrote out the entire request and everything looks identical, so I’m very confused. Am I doing something wrong? GETs and POSTs work properly. In fact, the only difference between how I handle POSTs and PUTs right now is just what I display for each as right now I’m just writing test code to show success.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T22:30:33+00:00Added an answer on May 20, 2026 at 10:30 pm

    I also find it weird that there’s no equivalent of parse_post/1 for non-POST HTTP methods in the Yaws API.

    In any case, I simply use parse_query/1 for PUTs. Given a PUT request with param1=abc, param2=def:

    index(Args) ->
      case yaws_arg:method(Args) of
      'PUT' ->
        Parsed = yaws_api:parse_query(Args),
        io:format("PUT PARAMS=~p", [Parsed]),
        ....
      'POST' ->
        ....
    

    the output is:

    PUT PARAMS=[{"param1","abc"}, {"param2","def"}}]
    

    (The above example is in a Erlyweb controller.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Just started working with android and ran into a small problem. I am have
I just started working with OpenGL, but I ran into a problem after implementing
I just started working with Javascript and I ran into an error with Visual
I just started working with CodeIgniter and I am having some trouble with the
I just started working with PHP and have managed to run a simple CRUD
I'm just started working on a rails legacy app (2.3.5) and it has some
I just started working with jQuery and I have been searching for some type
I just started working with assembly so this is probably a really simple question,
I just started working with rails, and I know it must be something simple
I just started working on some changes against trunk on an SVN repo, thinking

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.