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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T07:52:28+00:00 2026-06-10T07:52:28+00:00

I am integrating with a system that is sending HTTP-GET requests to our application.

  • 0

I am integrating with a system that is sending HTTP-GET requests to our application. Using Jetty, it took a few minutes to slap something together.

I tested it with curl (with the necessary escapes in the request) and all was rosy. I got the response back as requested:

$ curl http://localhost:9100?field1=value1\&field2=value2\&field3=value3

A TCP dump on the machine, shows the request coming through as:

GET /?field1=value1&field2=value2&field3=value3 HTTP/1.1
User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.13.1.0 zlib/1.2.3    libidn/1.18 libssh2/1.2.2
Host: xxx.xxx.xxx.xxx:9100
Accept: */*

However, life is never that simple. When I deployed this so that we can actually start integrating with the real system, the handler in my code did not even get called. Jetty responded with “HTTP/1.1 400 Bad Request” immediately. A TCP dump revealed the following:

GET ?field1=value1&field2=value2&field3=value3 HTTP/1.1

That’s it… no header information, just the above.

My question now is whether the request above is actually valid. Is the slash required? Is any of the header entries compulsory?

Any ideas? Does this mean I have to redesign the wheel to get this working?


EDIT:

I tried using telnet to connect. It seems like the / is indeed required after the GET request for some webservers. However, it seems it is handled differently between them. Jetty complains, the webserver that google runs on complains… however Apache is an example of one that is fine with it. None of the header information seems to be required.

  • 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-10T07:52:30+00:00Added an answer on June 10, 2026 at 7:52 am

    RFC 2616 provides all the sundry details:

    3.2.2

    If the abs_path is not present in the URL, it MUST be given as “/”
    when used as a Request-URI for a resource (section 5.1.2).

    14.23

    A client MUST include a Host header field in all HTTP/1.1 request
    messages .

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

Sidebar

Related Questions

My company is currently using Sage MAS as their ERP system. While integrating our
I'm integrating a legacy system with SP2010 using a literal SOAP calls. I can
We have been thinking recently about integrating our J2EE system with other applications written
I'm looking for a version numbering scheme/pattern/system for an application that is currently branched
At work we are designing an enterprise system that will consist of a few
We are in the process of integrating PI to our system landscape. I read
Integrating redis with my Scala application using Akka but for some reason it does
I'm integrating with an sso system that requires setting a cookie during a POST
I have a system that has many components interacting with each other. It occured
I am working on a system that performs continuous integration and I am looking

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.