Can somebody help me uploading to postimg with curl?

Status
Not open for further replies.

tacticsshow

Active Member
611
2012
158
160
They've disabled http://old.postimage.org so I have to use https://postimg.io/upload.php

Been using this before:

Code:
curl -F "upload=@cache\cover_art.jpg;filename=cover_art.jpg" -F "adult=no" "https://old.postimage.org/"

but it's not working anymore.

Here's the http header when uploading to their 2.0 site:

Code:
https://postimage.io/upload.php

POST /upload.php HTTP/1.1
Host: postimage.io
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: https://postimage.io/
Content-Length: 81698
Content-Type: multipart/form-data; boundary=---------------------------113121585931622
Connection: keep-alive
-----------------------------113121585931622
Content-Disposition: form-data; name="Filedata"; filename="cover_2.jpeg"
Content-Type: image/jpeg

ÿØÿà
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 28 Jun 2017 13:46:18 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Keep-Alive: timeout=10
Vary: Accept-Encoding
Access-Control-Allow-Headers: Cache-Control, X-Requested-With, Content-Type
Access-Control-Allow-Methods: POST, GET, OPTIONS
Access-Control-Allow-Origin: *
Content-Encoding: gzip
----------------------------------------------------------
https://uib.ff.avast.com/v5/urlinfo

POST /v5/urlinfo HTTP/1.1
Host: uib.ff.avast.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Content-Type: application/octet-stream
Content-Length: 424
Cookie: userid=9e57edadb33002db9ec83c4d6dec97c7; _ga=GA1.2.318c22e5-7bcc-4c27-a7f6-3298003ea93e
Connection: keep-alive

https://postimage.io/ÎUS*’
$ef32f9b9-3b7a-43a4-8d3b-ce9d46b7bd99(B b7f0da6417ee07329dffb75feb172ebcJ54.0Z@87D6ED8022F318A5280B2B9478CB7FAE0A0A272EB67AB4CE38872303482940780@þX`h
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 28 Jun 2017 13:46:18 GMT
Content-Type: application/octet-stream
Content-Length: 33
Connection: keep-alive
----------------------------------------------------------
http://localhost:27275/command

POST /command HTTP/1.1
Host: localhost:27275
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/octet-stream
X-AVAST-APP-ID: fqlfVYamNQrJ9yBmpwdB
Content-Length: 27
Connection: keep-alive
https://postimage.io/
HTTP/1.0 200 OK
Content-Type: application/octet-stream
Content-Length: 4
----------------------------------------------------------
http://localhost:27275/command

POST /command HTTP/1.1
Host: localhost:27275
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/octet-stream
X-AVAST-APP-ID: fqlfVYamNQrJ9yBmpwdB
Content-Length: 27
Connection: keep-alive

https://postimage.io/
HTTP/1.0 200 OK
Content-Type: application/octet-stream
Content-Length: 4
----------------------------------------------------------
https://postimg.org/image/k6a5sk7lt/0a2e872d/

GET /image/k6a5sk7lt/0a2e872d/ HTTP/1.1
Host: postimg.org
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: https://postimage.io/
Cookie: _postimg_t4=1
Connection: keep-alive
Upgrade-Insecure-Requests: 1

HTTP/1.1 200 OK
Server: nginx
Date: Wed, 28 Jun 2017 13:45:39 GMT
Content-Type: text/html; charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Keep-Alive: timeout=10
Vary: Accept-Encoding
x-frame-options: SAMEORIGIN
Content-Encoding: gzip
----------------------------------------------------------
https://uib.ff.avast.com/v5/urlinfo

POST /v5/urlinfo HTTP/1.1
Host: uib.ff.avast.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Content-Type: application/octet-stream
Content-Length: 448
Cookie: userid=9e57edadb33002db9ec83c4d6dec97c7; _ga=GA1.2.318c22e5-7bcc-4c27-a7f6-3298003ea93e
Connection: keep-alive

-https://postimg.org/image/k6a5sk7lt/0a2e872d/ÎUS*’
$ef32f9b9-3b7a-43a4-8d3b-ce9d46b7bd99(B b7f0da6417ee07329dffb75feb172ebcJ54.0Z@87D6ED8022F318A5280B2B9478CB7FAE0A0A272EB67AB4CE38872303482940780@þX`h
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 28 Jun 2017 13:46:19 GMT
Content-Type: application/octet-stream
Content-Length: 34
Connection: keep-alive
----------------------------------------------------------
http://localhost:27275/command

POST /command HTTP/1.1
Host: localhost:27275
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/octet-stream
X-AVAST-APP-ID: fqlfVYamNQrJ9yBmpwdB
Content-Length: 51
Connection: keep-alive
-https://postimg.org/image/k6a5sk7lt/0a2e872d/
HTTP/1.0 200 OK
Content-Type: application/octet-stream
Content-Length: 4
----------------------------------------------------------
http://localhost:27275/command

POST /command HTTP/1.1
Host: localhost:27275
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/octet-stream
X-AVAST-APP-ID: fqlfVYamNQrJ9yBmpwdB
Content-Length: 51
Connection: keep-alive

-https://postimg.org/image/k6a5sk7lt/0a2e872d/
HTTP/1.0 200 OK
Content-Type: application/octet-stream
Content-Length: 4
----------------------------------------------------------
https://s16.postimg.org/k6a5sk7lt/cover_2.jpg?j

GET /k6a5sk7lt/cover_2.jpg?j HTTP/1.1
Host: s16.postimg.org
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: https://postimg.org/image/k6a5sk7lt/0a2e872d/
Cookie: _postimg_t4=1
Connection: keep-alive

HTTP/2.0 200 OK
Date: Wed, 28 Jun 2017 13:46:20 GMT
Content-Type: image/jpeg
Content-Length: 8606
Server: nginx
Last-Modified: Wed, 28 Jun 2017 13:46:18 GMT
Cache-Control: must-revalidate
Etag: "5953b32a-219e"
x-proxy-cache: MISS
Access-Control-Allow-Origin: *
Accept-Ranges: bytes
X-Firefox-Spdy: h2
----------------------------------------------------------
 
Last edited:
Status
Not open for further replies.
Back
Top