in reply to Re^9: www::mechanize behind proxy and https not working
in thread www::mechanize behind proxy and https not working

here's the whole thing...I thought I should post only the part that said error
GET http://www.example.com/ Accept-Encoding: gzip User-Agent: WWW-Mechanize/1.60 Cookie: customer_type=IndividualUser; landing_page=original Cookie2: $Version="1" (no content) HTTP/1.1 302 Moved Temporarily Cache-Control: no-cache Connection: close Date: Wed, 15 Sep 2010 07:22:30 GMT Location: http://www.example.com/home Server: Mongrel 1.1.5 Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 100 Content-Type: text/html; charset=utf-8 Client-Date: Wed, 15 Sep 2010 07:22:30 GMT Client-Peer: Client-Response-Num: 1 P3P: CP="CAO PSA OUR" Set-Cookie: _example_session=017sfs3fcs406d4723s25d3s0ea8se2a; domain= +.example.c om; path=/ Status: 302 Found X-Runtime: 0.00077 \37\x8B\10\0\0\0\0\0\0\3\35\xCC[ 35\xA9t\xC4\x81\xC4\xE4\xC51\xFD\23\xD3\xDF~ ?jn]\0\0\0 GET http://www.example.com/home Accept-Encoding: gzip User-Agent: WWW-Mechanize/1.60 Cookie: customer_type=IndividualUser; landing_page=original; _example_ +session=01 7sf73fsfs06s4s2sfs5s3s0sas0e2a Cookie2: $Version="1" (no content) HTTP/1.1 200 OK Cache-Control: private, max-age=0, must-revalidate Connection: close Date: Wed, 15 Sep 2010 07:22:30 GMT ETag: "d1s9s6s0s0s3sfsesds5sd5scsd8s3s3"-gzip Server: Mongrel 1.1.5 Vary: Accept-Encoding Content-Encoding: gzip Content-Type: text/html; charset=utf-8 Client-Date: Wed, 15 Sep 2010 07:22:31 GMT Client-Peer: Client-Response-Num: 1 Client-Transfer-Encoding: chunked P3P: CP="CAO PSA OUR" Set-Cookie: _example_session=0s7sfs3scs4s6s4s2sfs5s3s0sas0e2a; domain= +.example.c om; path=/ Status: 200 OK X-Runtime: 0.01711 \37\x8B\10\0\0\0\0\0\0\3\x94RMo\xE20\20\xBD\xE7W\xB89\xEC$ \xB1\xCBv?\xF82h\13\xD5\xB6R\xB7T-UwO\x95q\34\x1206J\34H\xB7\xE2\xBF\x +AF\x93\xD0 .. \xF5\xCAQ\xD9\x83J\xA7f\32\xCAr\xC7\xA4\xF5ZP\xAB\xA8\xC4\16M\x98m\xDC +\xC7[... (+ 5350 more bytes not shown) POST https://www.example.com/session Accept-Encoding: gzip Referer: http://www.example.com/ User-Agent: WWW-Mechanize/1.60 Content-Length: 130 Content-Type: application/x-www-form-urlencoded Cookie: customer_type=IndividualUser; landing_page=original; _example_ +session=01 7fs7sfsfs0sfs7s3s8sds0ses8se2a Cookie2: $Version="1" authenticity_token=7dbd8s3s3s7s6sas9sfses1s5s2sc000255f031d&redir=%2Fh +ome&login= login&password=pass HTTP/1.1 302 Moved Temporarily Cache-Control: no-cache Connection: close Date: Wed, 15 Sep 2010 07:22:32 GMT Location: https://www.example.com/dashboard Server: Mongrel 1.1.5 Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 104 Content-Type: text/html; charset=utf-8 Client-Date: Wed, 15 Sep 2010 07:22:32 GMT Client-Peer: Client-Response-Num: 1 P3P: CP="CAO PSA OUR" Set-Cookie: auth_token=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT Set-Cookie: customer_type=IndividualUser; path=/; expires=Tue, 15 Sep +2020 07:22 :32 GMT Set-Cookie: auth_token=; path=/ Set-Cookie: _example_session=01sfs7ssfsfss0sfs7s3f85d300ea80e2a; domai +n=.example.c om; path=/ Status: 302 Found X-Runtime: 0.10842 \37\x8B\10\0\0\0\0\0\0\3\35\xCC\xD1\t\x800\14\5\xC0U\x8A\x034\xFF\22\x +BB\x87\x9F .. 4K\x832I\x8AL\xFF\xC7\xF4\xE7\37\4\xDF_\xDAc\0\0\0 GET https://www.example.com/dashboard Accept-Encoding: gzip Referer: http://www.example.com/ User-Agent: WWW-Mechanize/1.60 Cookie: customer_type=IndividualUser; auth_token=; landing_page=origin +al; _hedge ye_session=01afa7afaf406f4723f85d300ea80e2a Cookie2: $Version="1" (no content) HTTP/1.1 400 Bad Request Cache-Control: no-cache Connection: close Pragma: no-cache Content-Length: 2815 Content-Type: text/html; charset=utf-8 Client-Date: Wed, 15 Sep 2010 07:22:32 GMT Client-Peer: 159.156.152.18:8080 Client-Response-Num: 1 Proxy-Connection: close <style type="text/css"> a.norm:link, a.norm:visited { font-size:9pt; font-family:Arial, Helvet +ica, Sans- Serif; color:#0099CC; text-decoration:none;} a.norm:active, a.norm:hover{ text-decoration:underline;} a.bold:link, a.bold:visited { font-size:9pt; font-family:Arial, Helvet +ica, Sans- Serif; color:#0099CC; font-weight:800; text-decoration:none;} a.bold:active, a.bold:hover{ text-decoration:underline;} .disclaimerHeader { font-family:Arial, Helvetica, Sans-Serif; color:#C +C0033; fon t-size:12pt; text-align:lef... (+ 2303 more bytes not shown) Error GETing https://www.example.com/dashboard: Bad Request at SiteScr +aper.pl li ne 22

Replies are listed 'Best First'.
Re^11: www::mechanize behind proxy and https not working
by Anonymous Monk on Sep 15, 2010 at 12:07 UTC
    Nothing looks wrong with that request, looks like an errant bad request response
      I've tested it with several https sites. None of them work. All of them give the same error.