[GH-ISSUE #5910] [bug]: Unable to import cURL with -sS flags #2320

Open
opened 2026-03-16 23:56:52 +03:00 by kerem · 1 comment
Owner

Originally created by @chhaviG22 on GitHub (Feb 26, 2026).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5910

Originally assigned to: @chhaviG22 on GitHub.

Is there an existing issue for this?

  • I have searched existing issues and this bug hasn't been reported yet

Platform

Web App

Browser

Chrome

Operating System

macOS

Bug Description

When importing cURL commands that contain output control flags (such as -s, -S, -v, -sS, etc.), the import fails with "cURL is not formatted properly" error. These flags control cURL's output behavior but don't affect the actual HTTP request.

Expected Behavior

The cURL command should be successfully imported.
The -sS flags should be automatically stripped during parsing since they only control cURL's output behavior.

Actual Behavior

Import fails with error: "cURL is not formatted properly"

Steps to reproduce

  1. Open Hoppscotch (web or desktop app)
  2. Click the dropdown next to the "Send" button → Select "Import cURL"
  3. Paste the following cURL command that contains -sS flag
  4. Click "Import"
  5. Error appears: "cURL is not formatted properly"

Current Workaround

Manually remove the -sS flags before importing.

Additional context

Interceptor used: N/A (issue occurs during import, before any request is sent)

Deployment Type

Hoppscotch Cloud

Version

2026.2.0

Originally created by @chhaviG22 on GitHub (Feb 26, 2026). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5910 Originally assigned to: @chhaviG22 on GitHub. ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Platform Web App ### Browser Chrome ### Operating System macOS ### Bug Description When importing cURL commands that contain output control flags (such as `-s`, `-S`, `-v`, `-sS`, etc.), the import fails with "cURL is not formatted properly" error. These flags control cURL's output behavior but don't affect the actual HTTP request. ### Expected Behavior The cURL command should be successfully imported. The `-sS` flags should be automatically stripped during parsing since they only control cURL's output behavior. ### Actual Behavior Import fails with error: **"cURL is not formatted properly"** ## Steps to reproduce 1. Open Hoppscotch (web or desktop app) 2. Click the dropdown next to the "Send" button → Select "Import cURL" 3. Paste the following cURL command that contains -sS flag 4. Click "Import" 5. **Error appears**: "cURL is not formatted properly" ### Current Workaround Manually remove the `-sS` flags before importing. ## Additional context **Interceptor used**: N/A (issue occurs during import, before any request is sent) ### Deployment Type Hoppscotch Cloud ### Version 2026.2.0
Author
Owner

@VishwaVikas2006 commented on GitHub (Mar 12, 2026):

Hi, I'd like to work on this issue. I’ll try reproducing the problem locally and submit a fix if I can identify the cause.

<!-- gh-comment-id:4044712608 --> @VishwaVikas2006 commented on GitHub (Mar 12, 2026): Hi, I'd like to work on this issue. I’ll try reproducing the problem locally and submit a fix if I can identify the cause.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#2320
No description provided.