Skip to content

HTTP requests are forced to be converted to HTTPS when proxy mode enabled #1063

Closed

Description

@GG-o1

1、httpx -u http://127.0.0.1:89 -debug-resp,it's ok
image

2、httpx -u http://127.0.0.1:89 -debug-resp -proxy http://127.0.0.1:8080,set burp proxy,request changed.
image

is there any parameter can be set to resolve this?

Activity

  1. added
    Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.
    on Mar 28, 2023
  2. jimen0 commented on Apr 6, 2023

    @jimen0
    Contributor

    Might share root cause with projectdiscovery/nuclei#3511. It seems httpx first attempts HTTPS and then falls back to HTTP besides HTTP protocol being specified.

    This is what I see on proxify even after specifically setting http.

    image

  3. ehsandeep commented on Apr 17, 2023

    @ehsandeep
    Member

    @GG-o1 if you wanted to utilize the predefined schema for probing you can -nsf option to disable httpx's default probing behavior.

       -nfs, -no-fallback-scheme          probe with protocol scheme specified in input 
    
    echo http://0.0.0.0:8000 | httpx -proxy http://0.0.0.0:8080 -nfs
    
        __    __  __       _  __
       / /_  / /_/ /_____ | |/ /
      / __ \/ __/ __/ __ \|   /
     / / / / /_/ /_/ /_/ /   |
    /_/ /_/\__/\__/ .___/_/|_|
                 /_/
    
    		projectdiscovery.io
    
    http://0.0.0.0:8000
  4. added
    Type: QuestionA query or seeking clarification on parts of the spec. Probably doesn't need the attention of all.
    and removed
    Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.
    on Apr 17, 2023
  5. removed
    Type: QuestionA query or seeking clarification on parts of the spec. Probably doesn't need the attention of all.
    on Apr 18, 2023
  6. locked and limited conversation to collaborators on Apr 18, 2023
  7. converted this issue into a discussion #1101 on Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions