Skip to content

Inconsistency: curl export format incompatible with curl import #309

@Trotter-Wiz-Kiwanis

Description

@Trotter-Wiz-Kiwanis

Steps to reproduce:

  1. simple request, like: [GET] google.com
  2. export to curl
  3. test curl in terminal, make sure it works (tested, it works)
  4. paste just exported curl to URI field
  5. posting is unable to correctly import that curl request; in URI field posting puts header string

Hints and guesses:

  • posting expects this: curl URI
  • posting exports curl --header1 --header2 URI
  • posting is unable to import curl with "unexpected" order or command elements

Visualised:
Image

Image Image
curl \
  --cookie 'AEC=AaJma5t5UH5ghLgdLiF5ZKGIrYkv6OBHWJ7vSIYCQujFJKE6blkldDHAgA' \
  --cookie '_gh_sess=MDKkh6qb3cvm0N6NMdFGE%2Fbo3wc2oyOgk5P7Esqmx%2Fdpew8noADXp1C5V8mvWtn%2Fp5eNB%2F3s1hHbV0WUWLUQHhW74tLxRTn%2BpWklyCi%2BsaKZZygMjXqxNE4eD2XayoVM7aND3ghM%2BNIbNDuz2czCFZYNLYBrzAKEP0%2F7CNCUwureZj1Wqk5LCPYIKG%2FKK02xnROUxbfRP5536NLzqypPbQQxgeEaaf0VstUAzCeZN1v4NlDSHPHUGGTQK%2FBJ6oN8xYgf8EUMEZ82VxzDXwvw4w%3D%3D--lgz%2BICoPITJNB0am--%2Fta9HeRrQo3RpXK9YWdTcg%3D%3D' \
  --cookie '_octo=GH1.1.143979939.1762078298' \
  --cookie 'logged_in=no' \
  'http://google.com'
Image Image Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions