|
Re: RestClient and SSL stores/default paths
Actually, unless you're doing mutual SSL authentication with the server, you should not pass an :ssl_client_cert option. Is your server live somewhere so that we can test?
Cyril
--
http://crohr.me
Actually, unless you're doing mutual SSL authentication with the server, you should not pass an :ssl_client_cert option. Is your server live somewhere so that we can test?
Cyril
--
http://crohr.me
|
By
Cyril Rohr <cyril.rohr@...>
·
#284
·
|
|
Re: RestClient and SSL stores/default paths
I tried that with:
:ssl_ca_file => "/etc/ssl/certs/Go_Daddy_Class_2_CA.pem",
But that didn't work either. What are the ssl settings I give to
RestClient and where do I get the
I tried that with:
:ssl_ca_file => "/etc/ssl/certs/Go_Daddy_Class_2_CA.pem",
But that didn't work either. What are the ssl settings I give to
RestClient and where do I get the
|
By
David Ljung Madison <librelist.com@...>
·
#283
·
|
|
Re: RestClient and SSL stores/default paths
Hello,
If you want to verify server certificates, you need to pass the path to a Certification Authority (CA) file with the :ssl_ca_file option. This file should contain at least the certificate of
Hello,
If you want to verify server certificates, you need to pass the path to a Certification Authority (CA) file with the :ssl_ca_file option. This file should contain at least the certificate of
|
By
Cyril Rohr <cyril.rohr@...>
·
#282
·
|
|
RestClient and SSL stores/default paths
I don't know much about SSL, but I'm trying to use RestClient to
connect to my SSL server. I tried the simple RestClient example
I found and added this to Resource.new:
:ssl_client_cert =>
I don't know much about SSL, but I'm trying to use RestClient to
connect to my SSL server. I tried the simple RestClient example
I found and added this to Resource.new:
:ssl_client_cert =>
|
By
David Ljung Madison <librelist.com@...>
·
#281
·
|
|
Re: examples
No windows.
But I do have a HTTP proxy that works similarly.
- T (iPhone)
No windows.
But I do have a HTTP proxy that works similarly.
- T (iPhone)
|
By
Tom Allison <tom@...>
·
#280
·
|
|
Re: examples
It only works on Windows as far as I know, so if you are on another
platform you'd need to find a similar tool.
I use it a lot when developing steps. in cucumber that use rest_client
I have a
It only works on Windows as far as I know, so if you are on another
platform you'd need to find a similar tool.
I use it a lot when developing steps. in cucumber that use rest_client
I have a
|
By
Charles S van der Linden <sqapro@...>
·
#279
·
|
|
Re: examples
Fiddler2... I'll check it out. Thank you.
- T (iPhone)
Fiddler2... I'll check it out. Thank you.
- T (iPhone)
|
By
Tom Allison <tom@...>
·
#278
·
|
|
Re: examples
IF you are unsure or don't have a clear spec, I would use something
like fiddler2 to observe 'normal' interaction by making manual
requests using a browser, or browser with a rest-testing plugin.
IF you are unsure or don't have a clear spec, I would use something
like fiddler2 to observe 'normal' interaction by making manual
requests using a browser, or browser with a rest-testing plugin.
|
By
Charles S van der Linden <sqapro@...>
·
#277
·
|
|
examples
Are there any examples of how this can be used with a session_id based authentication?
Are there any examples of how this can be used with a session_id based authentication?
|
By
Tom Allison <tom@...>
·
#276
·
|
|
Fork
I've created a very simple fork of rest-client that allows
per-resource proxy settings:
resource = RestClient::Resource.new(url, :proxy => auth.proxy)
response = resource.get()
I needed this
I've created a very simple fork of rest-client that allows
per-resource proxy settings:
resource = RestClient::Resource.new(url, :proxy => auth.proxy)
response = resource.get()
I needed this
|
By
David Ljung Madison <librelist.com@...>
·
#275
·
|
|
Re: Using restclient for streaming multipart uploads
I ran out of time myself, so hacked something together that is good enough for now with a straight stream instead of a multipart stream.
If you get ever find time to use StringIO with multipart, let
I ran out of time myself, so hacked something together that is good enough for now with a straight stream instead of a multipart stream.
If you get ever find time to use StringIO with multipart, let
|
By
Anthony Rowlands <draftomatic@...>
·
#274
·
|
|
Re: Using restclient for streaming multipart uploads
I think so but unfortunately I don't have tile now to retrieve it, for a quickfix you could write the StringIO to a TempFile and use it as a parameter
A.
I think so but unfortunately I don't have tile now to retrieve it, for a quickfix you could write the StringIO to a TempFile and use it as a parameter
A.
|
By
Archiloque <code@...>
·
#273
·
|
|
Re: Using restclient for streaming multipart uploads
I just printed the raw request body on my server, and it is empty... The correct headers were sent, but there is nothing in the body.
Are you sure RestClient can handle this? You said it's not the
I just printed the raw request body on my server, and it is empty... The correct headers were sent, but there is nothing in the body.
Are you sure RestClient can handle this? You said it's not the
|
By
Anthony Rowlands <draftomatic@...>
·
#272
·
|
|
Re: Using restclient for streaming multipart uploads
seems difficult as you seem to have tried several time, you could perhaps use a simple logging proxy en your machine to see what exactly happen ?
A.
seems difficult as you seem to have tried several time, you could perhaps use a simple logging proxy en your machine to see what exactly happen ?
A.
|
By
Archiloque <code@...>
·
#271
·
|
|
Re: Using restclient for streaming multipart uploads
Logging is showing this:
Does this look okay to you? 30kb sounds about right for the data I'm testing with. It could be server-side problem at this point, but without seeing the actual stream it's
Logging is showing this:
Does this look okay to you? 30kb sounds about right for the data I'm testing with. It could be server-side problem at this point, but without seeing the actual stream it's
|
By
Anthony Rowlands <draftomatic@...>
·
#270
·
|
|
Unsubscribe
Hi, I hope you all don't get this message -- the Github page tells how
to subscribe, but not how to unsubscribe, and I don't think I saved
the initial email message from the list.
If you get this,
Hi, I hope you all don't get this message -- the Github page tells how
to subscribe, but not how to unsubscribe, and I don't think I saved
the initial email message from the list.
If you get this,
|
By
Keith Bennett <keithrbennett@...>
·
#269
·
|
|
Re: Using restclient for streaming multipart uploads
you can enable some logging to see what is happening, like RestClient.log = 'STDOUT'
A.
you can enable some logging to see what is happening, like RestClient.log = 'STDOUT'
A.
|
By
Archiloque <code@...>
·
#268
·
|
|
Re: Using restclient for streaming multipart uploads
Okay, I am trying this now:
This seems to work, although my server isn't able to read the uploaded file contents. It does recognize the content-type as "multipart/form-data; boundary=993865",
Okay, I am trying this now:
This seems to work, although my server isn't able to read the uploaded file contents. It does recognize the content-type as "multipart/form-data; boundary=993865",
|
By
Anthony Rowlands <draftomatic@...>
·
#267
·
|
|
Re: Using restclient for streaming multipart uploads
Thanks for the reply!
Actually, #path is defined on StringIO already, but it always returns nil (see this doc). Can I override this method? Never done that before in Ruby...
Anthony
Thanks for the reply!
Actually, #path is defined on StringIO already, but it always returns nil (see this doc). Can I override this method? Never done that before in Ruby...
Anthony
|
By
Anthony Rowlands <draftomatic@...>
·
#266
·
|
|
Re: Using restclient for streaming multipart uploads
Shortest way would be to add a path method to your StringIO and RestClient will use it as a File
Please tell me if it works, this way I could add something about it in the code as it's not the first
Shortest way would be to add a path method to your StringIO and RestClient will use it as a File
Please tell me if it works, this way I could add something about it in the code as it's not the first
|
By
Archiloque <code@...>
·
#265
·
|