Welcome to the "trac"-ing site of http-access2!
[soap4r] [httpclient] [openpgp4u] [pkcs1] [logger] [csv] [vtr]

Ticket #35 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Date format in the request header confuses server

Reported by: Sammy Chan Assigned to: nahi
Priority: high Milestone: 2.0.7
Component: core Version: 2.0
Keywords: Cc:

Description

I'm using 2.0.6. When submitting a normal HTTP request, the unformatted Date header value is localized, eg in my Chinese Windows XP, it generates this:

Date: Mon Apr 17 12:44:28 台北標準時間 2006

Server response with HTTP 400 Bad request

On examination, it is due to line 1343 of http-access2.rb:

req.header.set('Date', Time.now)

When I changed it to:

req.header.set('Date', HTTP.http_date(Time.now))

it works.

Change History

05/30/06 12:28:07 changed by kkkkoaaa

Keep a good job up! http://quick-adult-links.com

07/17/06 13:09:06 changed by nahi

  • priority changed from normal to high.
  • milestone changed from undefined to 2.0.7.

07/17/06 14:51:35 changed by nahi

  • status changed from new to closed.
  • resolution set to fixed.

(In [125]) Date format in the request header confuses server. use HTTP.http_date(Time.now). fixes #35.