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 7030075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:37:20+00:00 2026-05-28T00:37:20+00:00

http://www.myserver.com/exile?Key1=Value1&Key2=Value2 When i get a request in this format to my server, how do

  • 0

http://www.myserver.com/exile?Key1=Value1&Key2=Value2

When i get a request in this format to my server,
how do i handle this request?
What i need to do: Need to get all the values and run a Erlang module, and send the result to the client.Is exile a CGI and if so how come it doesn’t have a .cgi extension?

Additional Data:
I have setup an Yaws on my server(Desktop running linux server).
yaws.conf file is configured.

  • 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-28T00:37:21+00:00Added an answer on May 28, 2026 at 12:37 am

    Here are the solutions:

    <erl>
    
    out(A)->
        Values = yaws_api:parse_query(A),
        Value1 = proplists:get_value("Key1",Values),
        Value2 = proplists:get_value("Key2",Values),
        %% then do anything with them ....
        %% ....
        {html,"Json Data or HTML tags or XML data or string of data"}.
        %% or {ehtml,[{p,[],""}]}.
    
    <erl>
    

    More information here: http://yaws.hyber.org/query.yaws

    OR

    <erl>
    
    out(A)->
        Value1 = yaws_api:queryvar(A,"Key1"),
        Value2 = yaws_api:queryvar(A,"Key2"),
        %% Need to be careful here
        %% if the value aint found, the 
        %% variable will contain an atom 'undefined'
        %% then do anything with them ....
        %% ....
        {html,"Json Data or HTML tags or XML data or string of data"}.
        %% or {ehtml,[{p,[],""}]}.
    
    <erl>
    
    

    OR

    <erl>
    
    out(A)->
        Value1 = yaws_api:getvar(A,"Key1"),
        Value2 = yaws_api:getvar(A,"Key2"),
        %% Need to be careful here
        %% if the value aint found, the 
        %% variable will contain an atom 'undefined'
        %% then do anything with them ....
        %% ....
        {html,"Json Data or HTML tags or XML data or string of data"}.
        %% or {ehtml,[{p,[],""}]}.
    
    <erl>
    
    

    Read more on Module: yaws_api.erl

    *NOTE * avoid using the last option (getvar/2) because it first checks the POST data and then also checks the GET data, looking for your specified parameter. It should only be used when you are not sure wether the parameter is coming along the GET or POST request data.

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

Sidebar

Related Questions

I serve content from a subdirectory on my web server, for example: http://www.myserver.com/subtree I
I`ve seen on various websites, some links appear like this: http://www.myserver.com/page.html#something and when I
Im trying to create a httpGet that returns a similar request as : http://www.myserver.com/do.json?json=
I have implemented my Server application regarding this post here: http://www.codeguru.com/csharp/csharp/cs_network/sockets/article.php/c8781#Client1 Sum up: I
I have an htaccess file which maps http://www.myserver.com/home/ to http://www.myserver.com/index.php?section=home This part works fine.
http://www.validome.org/xml/validate/?lang=en&viewSourceCode=1&url=http://45143.com/finance-feed/abc.xml&onlyWellFormed=1 check the url above for validator results. Line 171 in the XSD is
http://www.roguevalleyroses.com/rose_list.php?search_id=&class=&height=&growth=&color=&bloom_size=&bloom_type=&shade=&fragrance=&disease=&rebloom=&thorns=&zone=&hybridizer=Ashdown%20Roses&date_range=&text=&view=&show=&page=4 This is the page. The code that queries the results is here: http://pastebin.com/d51bfa53f
I have a RSS feed generated by my server ( for example : http://www.seek-team.com/en/teams/counter-strike-source/feed/
I am building a bookmarlet based on this site: http://www.latentmotion.com/how-to-create-a-jquery-bookmarklet/ This is the code
I have an mp3 on my server (urls are just examples): http://www.my-server.com/myaudio.mp3 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.