Giter VIP home page Giter VIP logo

unityweb's People

Contributors

simonwittber avatar

Watchers

 avatar  avatar

unityweb's Issues

SSL Cert Error:RemoteCertificateNotAvailable, RemoteCertificateChainErrors

Thank you for the class, it has solved some cookie problems for me!

However, I haven't managed to make an ssl connection with it yet

This code:

        Request request = new Request("post", "https://www.google.com/accounts/ClientLogin");

        request.AddHeader("Email", username);
        request.AddHeader("Passwd", password);
        request.AddHeader("service","ah");
        request.AddHeader("source", appName);
        request.AddHeader("accountType","HOSTED_OR_GOOGLE");

        request.Send();

        while (!request.isDone)
        {
            yield return null;
        }

Gives me the error

SSL Cert Error:RemoteCertificateNotAvailable, RemoteCertificateChainErrors

Any ideas?

Original issue reported on code.google.com by [email protected] on 10 Jul 2011 at 10:15

Multiple Cookies not supported.

What steps will reproduce the problem?
1. Making a call to a http/https URL that has multiple Set-Cookie values in the 
response headers.
2. Loop through Response.GetHeaders("Set-Cookie");

What is the expected output? What do you see instead?
- Should see all cookies. Only see last one sent in header.


What version of the product are you using? On what operating system?
SVN revision 16.


Please provide any additional information below.
Code to parse through GetHeaders List<string>

foreach (string hdr in response.GetHeaders("Set-Cookie"))
{
    Debug.Log(hdr);
}


Original issue reported on code.google.com by [email protected] on 29 Nov 2011 at 7:38

Added an option not to follow redirects

I added a 

   public bool allowAutoRedirect = true; 


and changed this

if (allowAutoRedirect)
{
    switch (response.status)
    {
        case 307:
        case 302:
        case 301:
            uri = new Uri(response.GetHeader("Location"));
            continue;
        default:
            retry = maximumRetryCount;
            break;
    }
}
else
{
    retry = maximumRetryCount;
    break;
}

Original issue reported on code.google.com by [email protected] on 10 Jul 2011 at 12:30

Http post: no content-type

It's ok just using request, but trouble starts when we want to send something 
in post data. The problem is request doesn't send content-type, so servers are 
rejecting it.

In a simple case, issue can be resolved just using code like:

if (bytes != null && bytes.Length > 0) {
                if (GetHeader ("Content-Length") == "") {
                    stream.Write(ASCIIEncoding.ASCII.GetBytes("Content-Type: application/x-www-form-urlencoded "));
                    stream.Write (EOL);
                    stream.Write (ASCIIEncoding.ASCII.GetBytes ("content-length: " + bytes.Length.ToString ()));
                    stream.Write (EOL);
                }
                stream.Write (bytes);
            } else {
                stream.Write (EOL);
            }

But user can send files, so content-type may differ.

Original issue reported on code.google.com by [email protected] on 21 Dec 2011 at 8:04

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.