title: I get InvalidURL: URL can't contain control characters when I try to send a request using urllib
body: <p>I am trying to get a JSON response from the link used as a parameter to the urllib request. but it gives me an error that it can't contain control characters.</p>
  <p>how can I solve the issue?</p>
  <pre><code>start_url = &quot;https://devbusiness.un.org/solr-sitesearch-output/10//0/ds_field_last_updated/desc?bundle_fq =procurement_notice&amp;sm_vid_Institutions_fq=&amp;sm_vid_Procurement_Type_fq=&amp;sm_vid_Countries_fq=&amp;sm_vid_Sectors_fq= &amp;sm_vid_Languages_fq=English&amp;sm_vid_Notice_Type_fq=&amp;deadline_multifield_fq=&amp;ts_field_project_name_fq=&amp;label_fq=&amp;sm_field_db_ref_no__fq=&amp;sm_field_loan_no__fq=&amp;dm_field_deadlineFrom_fq=&amp;dm_field_deadlineTo_fq =&amp;ds_field_future_posting_dateFrom_fq=&amp;ds_field_future_posting_dateTo_fq=&amp;bm_field_individual_consulting_fq=&quot;
      
  source = urllib.request.urlopen(start_url).read()
  </code></pre>
  <p>the error I get is :</p>
  <pre><code>URL can't contain control characters. '/solr-sitesearch-output/10//0/ds_field_last_updated/desc?bundle_fq =procurement_notice&amp;sm_vid_Institutions_fq=&amp;sm_vid_Procurement_Type_fq=&amp;sm_vid_Countries_fq=&amp;sm_vid_Sectors_fq= &amp;sm_vid_Languages_fq=English&amp;sm_vid_Notice_Type_fq=&amp;deadline_multifield_fq=&amp;ts_field_project_name_fq=&amp;label_fq=&amp;sm_field_db_ref_no__fq=&amp;sm_field_loan_no__fq=&amp;dm_field_deadlineFrom_fq=&amp;dm_field_deadlineTo_fq =&amp;ds_field_future_posting_dateFrom_fq=&amp;ds_field_future_posting_dateTo_fq=&amp;bm_field_individual_consulting_fq=' (found at least ' ')
  </code></pre>