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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:49:29+00:00 2026-06-16T00:49:29+00:00

Sorry if this is a duplicate question but google isn’t smart enough to understand

  • 0

Sorry if this is a duplicate question but google isn’t smart enough to understand me or I’m too dumb to express my question simple enough for it to understand.

I don’t know if this is my problem but I’m 90% sure this is it.
I’d like to know how to represent a Unix path within a GET request so that my web service doesn’t return a 404. I think it’s because one of my JSON fields in the query is a Unix path and because of the slashes, the webservice thinks it’s part of the URL and not a part of my query.

For example, I’m using a RESTClient that’s an add-on to Mozilla to test my web service. For the POST request, I enter as the url

http://mytestserver:8080/mydir/

and in the body, I put in my JSON object

{“filename”:”obit.jpg”, “Path”:”test/2/1“}

This method works fine. I get a status code 200 and a return JSON object with the expected output.

When I use the same string for a GET request, I get a status code 404 and no return JSON object. I put as the url in the RESTClient

http://mytestserver:8080/mydir/{"filename":"obit.jpg", "Path":"test/2/1"}

and I get a status code 404 and the response body just says 404 – Not found

To further test my theory, I entered the following url in a GET request, removing the /2/1 from the path, which works.

http://mytestserver:8080/mydir/{"filename":"obit.jpg", "Path":"test"}

I’ve tried encapsulating the whole JSON string in quotes but that didn’t work either so I’ve run out of things to try.

Thanks in advance for any help you can give me. If I need to show some code, please let me know, although, I don’t think it’s a code problem, I think it’s a representation problem. Thanks.

  • 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-06-16T00:49:31+00:00Added an answer on June 16, 2026 at 12:49 am

    Found out that JSON objects are usually sent via POST, not GET. Since I appended it to the URL via GET, it gave me problems. Per How to send a GET request with a "/" in the query

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

Sidebar

Related Questions

Sorry if this is a duplicate question...I've searched around and found similar advice but
I'm sorry if this is a duplicate, but the question search terms are pretty
I am sorry if this is a duplicate or too elementary, but how do
Sorry, this is probably a duplicate question, but how can I iterate over a
I am sorry that I duplicate this question , but I don't have the
First off, sorry if this is a near enough duplicate. I've found this question
I understand that this question may get closed for being duplicate (sorry if it
I'm sorry if this will sound like a dumb question but I just can't
I'm sorry if it's a duplicate of some question but this is specific on
Sorry, if this is a duplicate. Please point me to the appropriate question if

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.