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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:38:45+00:00 2026-06-01T13:38:45+00:00

This seemed pretty straightforward: capture a POST in Fiddler (Windows, because I find it

  • 0

This seemed pretty straightforward:

  • capture a POST in Fiddler (Windows, because I find it easier to use than WireShark)
  • get data posted
  • make a similar POST using Net::Http in Ruby

And yet. Every time I run the post, it gets a 500. Could really use a suggestion here.

Original POST (Raw):

POST http://www.example.com/products/ajax HTTP/1.1
Host: www.example.com
Connection: keep-alive
Content-Length: 154
Origin: http://www.example.com
X-Requested-With: XMLHttpRequest
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.142 Safari/535.19
Content-Type: application/x-www-form-urlencoded
Accept: application/json, text/javascript, */*; q=0.01
Referer: http://www.example.com/products
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

q=getProducts&page=52&type=leaf_blowers

But when I get this in the Rails console:

>> res = http.post_form URI.parse(the_url), {'a' => 'getProducts', 'page'=> '52', 'type'=> 'leaf_blowers'}
=> #<Net::HTTPInternalServerError 500 Internal Server Error readbody=true>

The first one (Fiddler) results in HTML being returned. The second is just a 500 error. Is there anything obvious that I’m missing here? If you’d like to see the Wireshark capture, let me know how I can get it to look like the Fiddler raw capture — I can’t figure out how to get that detail out of Wireshark.

  • 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-01T13:38:46+00:00Added an answer on June 1, 2026 at 1:38 pm

    Maybe it’s a typo when you posted the question, but the original post has

    q=getProducts
    

    and then you make the request with:

    'a' => 'getProducts'
    

    What happens if you make the request with ‘q’ => ‘getProducts’ ?

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

Sidebar

Related Questions

I'm trying to change the body background image whenever orientation changes. This seemed pretty
This seemed like an easy thing to do. I just wanted to pop up
This seemed to spark a bit of conversation on another question and I thought
This seemed like it should be easy, but I have had trouble getting it
In my mind, this seemed straigtforward...right up to the point that I sat down
In linking a sports event to two teams, at first this seemed to make
This one has me puzzled. It seemed like an easy task, but the solution
When I set out this morning the task seemed simple: build a list of
This question might belong on one of the other trilogies, but it sorta seemed
I need to send full objects from Javascript to PHP. It seemed pretty obvious

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.