henrik242 <[email protected]> added the comment:
Here's the wireshark output. It seems that urllib adds a "Connection: close"
which curl doesn't. Solr doesn't seem to like that.
Curl message:
POST /solr/my_coll/update?commit=true HTTP/1.1
Host: solr.example.no:12699
User-Agent: curl/7.64.1
Accept: */*
Content-Length: 138
Content-Type: application/x-www-form-urlencoded
<add><doc><field name="key">KEY__9927.1</field><field
name="value">{"result":0,"jobId":"9459695","jobNumber":"9927.1"}</field></doc></add>
Python message:
POST /solr/my_coll/update?commit=true HTTP/1.1
Accept-Encoding: identity
Content-Type: application/x-www-form-urlencoded
Content-Length: 138
Host: solr.example.no:12699
User-Agent: Python-urllib/3.7
Connection: close
<add><doc><field name="key">KEY__9927.1</field><field
name="value">{"result":0,"jobId":"9459695","jobNumber":"9927.1"}</field></doc></add>
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue39875>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com