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

  • SEARCH
  • Home
  • 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

I just started working with Javascript and I ran into an error with Visual
Just started working with android and ran into a small problem. I am have
I just started working for a pretty large company and my group manages all
I've just started working on an ASP.NET project which I hope to open source
I've just started working with ASP.NET MVC now that it's in beta. In my
I'm just getting started working with foreign keys for the first time and I'm
I've just started building a prototype application in Django. I started out by working
I recently started working on a large complex application, and I've just been assigned
I just started thinking about creating/customizing a web crawler today, and know very little
Just started working on a basic grid analysis algorithm in JavaScript but I have

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.