[Koha-bugs] [Bug 23588] New: Cant Create a Patron

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 11 12:53:38 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23588

            Bug ID: 23588
           Summary: Cant Create a Patron
 Change sponsored?: ---
           Product: Koha
           Version: 18.05
          Hardware: PC
                OS: Windows
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Web services
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: danish.qayyam at viftech.com.pk
        QA Contact: testopia at bugs.koha-community.org

Hi!

I am trying to create a new Patron but everytime getting Bad Request. What I am
missing. Here is my C# code:

 HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri);
 request.CookieContainer = cookieJar;
 request.Method = "POST";
 request.ContentType = "application/json";


System.IO.StreamWriter writer = new
System.IO.StreamWriter(request.GetRequestStream());

            string postData = "{'surname':
'D2','cardnumber':'12345678912345678912345678912349','library_id':'GBA','category_id':'HB','date_enrolled':'11/09/2019'}";


            writer.Write(json);
            writer.Flush();
            writer.Close();
   HttpWebResponse response = (HttpWebResponse)request.GetResponse();

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list