chao / RESTClient

RESTClient, a debugger for RESTful web services.
http://www.restclient.net
BSD 3-Clause "New" or "Revised" License
703 stars 172 forks source link

No Request with long Authentication #94

Open Kwitjibo opened 12 years ago

Kwitjibo commented 12 years ago

I have to test a Basic Auth protected system. Both username and password contain 38 characters. If I enter my authentication data and press "submit" nothing happens. If I remove some characters, the request starts as aspected.

Is there a maximum lenght for username + password? If it is, could you increase it?

lkraav commented 9 years ago

This is real as of today. I enter a long login name like "ck_5019ea4aba3865bfe6bc473503360359" and no request gets sent. Just deleting some X number of characters makes the request go.

Peter-Slump commented 9 years ago

Hi All, I have the same issue. The problem probably occurs because the wrong base64 encoding is used. It seems that the encoded string is split up at 76 characters (which is common for base64 encoding). But the HTTP RFC tells us that this should not be done for Basic authentication:

http://tools.ietf.org/html/rfc1945#section-11.1

As a workaround you can copy the encoded credentials and enter a custom request header with name "Authorization" and as value "Basic [encoded credentials]". Don't forget to remove the whitespace characters from the encoded credentials :)