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

Ticket #28 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

broken redirect

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

Description

As stated in RFC 2616 - Hypertext Transfer Protocol -- HTTP/1.1 "For 3xx responses, the location SHOULD indicate the server's preferred URI for automatic redirection to the resource. The field value consists of a single absolute URI."

RFC2119:" SHOULD This word, or the adjective "RECOMMENDED", mean that there may exist valid reasons in particular circumstances to ignore a particular item, but the full implications must be understood and carefully weighed before choosing a different course."

"SHOULD" is recommendation. Which sometimes does not describe real world situations.

I saw URI.parse used for checking redirects which fails on:

Location: index.php?str=Wrong username or password.

I'm not suppling any fix. It's my third day on ruby, i'm a bit afraid to mess things up. I used php pear HTTPClient library and Curl who behave right in this particular situation. Thanks.

Change History

06/17/06 01:21:51 changed by anonymous

http://medved.freewebspace.com - exploited teen | http://andrealowell.freewebspace.com - andrea-lowell-pic | http://ron-kimball.freewebspace.com - author-ron-kimball-studio-type-gallery | http://superstock-inc.freewebspace.com - author-superstock-inc-type-gallery | http://buffie.freewebspace.com - buffie-the-body-pic

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

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

07/17/06 14:49:04 changed by nahi

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

(In [124]) try to handle relative URI in a location header. CAUTION: changed redirect_uri_callback signature. closure now takes 2 parameters, uri and res in this order. fixes #28.